From 75c7dd95a04a23859eb1d7e1a9d59014f9f60252 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Tue, 31 Oct 2023 13:03:49 -0300 Subject: [PATCH] Better UI in home --- ui/resources/views/home.blade.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/resources/views/home.blade.php b/ui/resources/views/home.blade.php index 55da21e..ca7fc55 100644 --- a/ui/resources/views/home.blade.php +++ b/ui/resources/views/home.blade.php @@ -48,14 +48,20 @@ this.draw().empty() return } - const list = $('
').addClass('ui list') + const list = $('
').addClass('ui selection divided list') this.mailboxes.forEach(mb => { let count = '' if (typeof mb.last_checked !== 'undefined') { - count = ' (' + mb.last_checked.count + ')' + count = ' (' + mb.last_checked.count + ')' } list.append( - $('').addClass('item').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name + count) + $('
').addClass('item').append( + $('').addClass('inbox icon') + ).append( + $('
').addClass('content').append( + $('').addClass('header').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name).append(count) + ) + ) ) }) parent.append(list)