mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
sidebar: fixes urbit/landscape#596 item bolding
This commit is contained in:
parent
5b4cdf99a3
commit
a83d2b9150
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user