Merge branch 'la/note-opacity' into la/release-2021-03-04

This commit is contained in:
Logan Allen 2021-03-08 16:08:28 -06:00
commit 55fc64d62c

View File

@ -48,9 +48,14 @@ export function NotePreview(props: NotePreviewProps) {
const snippet = getSnippet(body);
const commColor = (props.unreads.graph?.[appPath]?.[`/${noteId}`]?.unreads ?? 0) > 0 ? 'blue' : 'gray';
const cursorStyle = post.pending ? 'default' : 'pointer';
return (
<Box width='100%'>
<Link to={url}>
<Box width='100%' opacity={post.pending ? '0.5' : '1'}>
<Link
to={post.pending ? '#' : url}
style={ { cursor: cursorStyle } }>
<Col
lineHeight='tall'
width='100%'