Skip to content

Commit

Permalink
Make notes slightly lighter in the results
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 13, 2024
1 parent 2655d2c commit 9192bcf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
14 changes: 5 additions & 9 deletions src/annotations/components/AnnotationEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1801,22 +1801,18 @@ const CommentBox = styled.div`
`}
`

const AnnotationStyled = styled.div`
const AnnotationStyled = styled.div<{}>`
box-sizing: border-box;
display: flex;
flex-direction: column;
font-size: 14px;
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 &&
`
Expand Down
17 changes: 11 additions & 6 deletions src/dashboard-refactor/search-results/components/page-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -929,13 +929,13 @@ export default class PageResultView extends PureComponent<Props> {
hoverState={this.props.isInFocus}
onRef={this.itemBoxRef} // Passing the ref as a prop
>
{this.props.uploadedPdfLinkLoadState === 'running' && (
<LoadingBox>
<LoadingIndicator size={30} />
Loading PDF
</LoadingBox>
)}
<StyledPageResult>
{this.props.uploadedPdfLinkLoadState === 'running' && (
<LoadingBox>
<LoadingIndicator size={30} />
Loading PDF
</LoadingBox>
)}
<PageContentBox
// onMouseOver={this.props.onMainContentHover}
// onMouseLeave={
Expand Down Expand Up @@ -1228,6 +1228,11 @@ const StyledPageResult = styled.div`
position: relative;
border-radius: 12px;
background: ${(props) =>
props.theme.variant === 'dark'
? props.theme.colors.greyScale1
: props.theme.colors.greyScale3};
${(props) =>
props.theme.variant === 'light' &&
css`
Expand Down

0 comments on commit 9192bcf

Please sign in to comment.