sidebar: fixes urbit/landscape#596 item bolding

This commit is contained in:
Tyler Brown Cifu Shuster 2021-03-22 09:45:23 -07:00
parent 5b4cdf99a3
commit a83d2b9150

View File

@ -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}