diff --git a/frontend/client/components/chat/foreground/sidebar.jsx b/frontend/client/components/chat/foreground/sidebar.jsx index c2c56e0a..2b5781f0 100644 --- a/frontend/client/components/chat/foreground/sidebar.jsx +++ b/frontend/client/components/chat/foreground/sidebar.jsx @@ -106,6 +106,7 @@ function Sidebar({ const quickActionsTop = [ { target: 'chats', + label: 'Chats', icon: , badge: unreadChats > 0 ? unreadCount : null, badgeTone: 'bg-emerald-500 text-emerald-950', @@ -114,6 +115,7 @@ function Sidebar({ }, { target: 'calls', + label: 'Calls', icon: , badge: null, badgeTone: 'bg-rose-500 text-rose-50', @@ -122,6 +124,7 @@ function Sidebar({ }, { target: 'status', + label: 'Status', icon: , badge: null, active: !!page.status, @@ -129,6 +132,7 @@ function Sidebar({ }, { target: 'contacts', + label: 'Contacts', icon: , badge: null, active: !!page.contact, @@ -136,6 +140,7 @@ function Sidebar({ }, { target: 'communities', + label: 'Communities', icon: , badge: null, active: !!page.communities, @@ -143,6 +148,7 @@ function Sidebar({ }, { target: 'channels', + label: 'Channels', icon: , badge: unreadChannels > 0 ? unreadChannelCount : null, badgeTone: 'bg-sky-400 text-sky-950', @@ -151,6 +157,7 @@ function Sidebar({ }, { target: 'archive', + label: 'Archive', icon: , badge: null, active: !!page.archive, @@ -158,6 +165,7 @@ function Sidebar({ }, { target: 'list', + label: 'Lists', icon: , badge: null, active: !!page.list, @@ -168,12 +176,16 @@ function Sidebar({ const quickActionsBottom = [ { target: 'media', + label: 'Media', icon: , + active: !!page.media, onClick: () => dispatch(setPage({ target: 'media', data: true })), }, { target: 'feedback', + label: 'Feedback', icon: , + active: false, onClick: () => dispatch(setModal({ target: 'feedback', data: true })), }, ]; @@ -183,29 +195,37 @@ function Sidebar({ if (mobileOpen) onCloseMobile(); }; + const menuButtonClass = (active = false, mobile = false) => + `relative flex ${mobile ? 'min-h-[52px] w-[78px]' : 'min-h-[50px] w-[72px]'} flex-col items-center justify-center gap-1 rounded-xl px-1 py-1.5 text-center transition ${ + active + ? 'bg-sky-600/25 text-white ring-1 ring-sky-400/70' + : 'text-slate-300 hover:bg-slate-800 hover:text-white dark:hover:bg-spill-700' + }`; + + const menuLabelClass = + 'block max-w-full truncate text-[10px] font-medium leading-none tracking-tight'; + return ( <> -