mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
Merge pull request #4639 from tylershuster/sidebar-bold
sidebar: two styling fixes
This commit is contained in:
commit
0d8a309c8b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user