From a83d2b9150c2f8a30bfb3d31e5adcbf83b268bca Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Mon, 22 Mar 2021 09:45:23 -0700 Subject: [PATCH] sidebar: fixes urbit/landscape#596 item bolding --- .../src/views/landscape/components/Sidebar/SidebarItem.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarItem.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarItem.tsx index 8efaa9583..67094a3b7 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarItem.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarItem.tsx @@ -93,6 +93,8 @@ export function SidebarItem(props: { } } + const fontWeight = (hasUnread || hasNotification) ? '500' : 'normal'; + if (props.hideUnjoined && !isSynced) { return null; } @@ -148,6 +150,7 @@ export function SidebarItem(props: { width='100%' mono={urbitOb.isValidPatp(title)} color={color} + fontWeight={fontWeight} style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }} > {title}