diff --git a/external/@worldbrain/memex-common b/external/@worldbrain/memex-common index 41c9d56971..3c320ece31 160000 --- a/external/@worldbrain/memex-common +++ b/external/@worldbrain/memex-common @@ -1 +1 @@ -Subproject commit 41c9d56971d357a7434a0fe5cd05e8ae2c506cfe +Subproject commit 3c320ece31fc2aa8e48d30abe2dacd28d934d36f diff --git a/src/annotations/components/AnnotationEditable.tsx b/src/annotations/components/AnnotationEditable.tsx index ff1e9b576f..8e929c595d 100644 --- a/src/annotations/components/AnnotationEditable.tsx +++ b/src/annotations/components/AnnotationEditable.tsx @@ -1801,7 +1801,7 @@ const CommentBox = styled.div` `} ` -const AnnotationStyled = styled.div` +const AnnotationStyled = styled.div<{}>` box-sizing: border-box; display: flex; flex-direction: column; @@ -1809,14 +1809,10 @@ const AnnotationStyled = styled.div` cursor: pointer; border-radius: inherit; - cursor: ${({ theme }) => theme.cursor} - ${({ theme }) => - theme.isEditing && - css` - background-color: ${(props) => props.theme.colors.greyScale1}; - cursor: default; - `}; - + background: ${(props) => + props.theme.variant === 'dark' + ? props.theme.colors.greyScale1 + : props.theme.colors.greyScale3}96; ${({ theme }) => theme.isActive && ` diff --git a/src/dashboard-refactor/search-results/components/page-result.tsx b/src/dashboard-refactor/search-results/components/page-result.tsx index 28d3a12b42..5bca4963d9 100644 --- a/src/dashboard-refactor/search-results/components/page-result.tsx +++ b/src/dashboard-refactor/search-results/components/page-result.tsx @@ -929,13 +929,13 @@ export default class PageResultView extends PureComponent { hoverState={this.props.isInFocus} onRef={this.itemBoxRef} // Passing the ref as a prop > - {this.props.uploadedPdfLinkLoadState === 'running' && ( - - - Loading PDF - - )} + {this.props.uploadedPdfLinkLoadState === 'running' && ( + + + Loading PDF + + )} + props.theme.variant === 'dark' + ? props.theme.colors.greyScale1 + : props.theme.colors.greyScale3}; + ${(props) => props.theme.variant === 'light' && css`