mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
interface: links opacity
This commit is contained in:
parent
cbef07d19f
commit
33cc337442
@ -93,7 +93,14 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
|
||||
const isUnread = props.unreads.graph?.[appPath]?.['/']?.unreads?.has(node.post.index);
|
||||
|
||||
return (
|
||||
<Box mx="auto" px={3} maxWidth="768px" ref={ref} width="100%" {...rest}>
|
||||
<Box
|
||||
mx="auto"
|
||||
px={3}
|
||||
maxWidth="768px"
|
||||
ref={ref}
|
||||
width="100%"
|
||||
opacity={node.post.pending ? '0.5' : '1'}
|
||||
{...rest}>
|
||||
<Box
|
||||
lineHeight="tall"
|
||||
display='flex'
|
||||
@ -155,7 +162,9 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
|
||||
></Author>
|
||||
|
||||
<Box ml="auto">
|
||||
<Link to={`${baseUrl}/${index}`}>
|
||||
<Link
|
||||
to={node.post.pending ? '#' : `${baseUrl}/${index}`}
|
||||
style={{ cursor: node.post.pending ? 'default' : 'pointer' }}>
|
||||
<Box display='flex'>
|
||||
<Icon color={commColor} icon='Chat' />
|
||||
<Text color={commColor} ml={1}>{node.children.size}</Text>
|
||||
|
Loading…
Reference in New Issue
Block a user