Merge pull request #4639 from tylershuster/sidebar-bold

sidebar: two styling fixes
This commit is contained in:
matildepark 2021-03-22 13:09:36 -04:00 committed by GitHub
commit 0d8a309c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,8 @@ export function SidebarItem(props: {
}
}
const fontWeight = (hasUnread || hasNotification) ? '500' : 'normal';
if (props.hideUnjoined && !isSynced) {
return null;
}
@ -134,7 +136,7 @@ export function SidebarItem(props: {
{DM ? img : (
<Icon
display="block"
color={color}
color={isSynced ? 'black' : 'gray'}
icon={getModuleIcon(mod) as any}
/>
)
@ -148,6 +150,7 @@ export function SidebarItem(props: {
width='100%'
mono={urbitOb.isValidPatp(title)}
color={color}
fontWeight={fontWeight}
style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}
>
{title}