Skip to content

Commit

Permalink
fix bug with sidebar elements not clickable on first click
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jul 24, 2024
1 parent 21ca506 commit c606a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
8 changes: 6 additions & 2 deletions src/annotations/components/AnnotationEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ export default class AnnotationEditable extends React.Component<Props, State> {
}
placement="bottom"
getPortalRoot={this.props.getRootElement}
dontCloseOnClick
>
<Icon
heightAndWidth="26px"
Expand All @@ -761,6 +762,7 @@ export default class AnnotationEditable extends React.Component<Props, State> {
}
}}
padding={'2px'}
hoverStyle="background"
/>
</TooltipBox>
</AutoAddedIndicator>
Expand All @@ -772,7 +774,7 @@ export default class AnnotationEditable extends React.Component<Props, State> {
return (
<DeleteScreenContainer>
<DeleteScreenTitle>
Deletion is not reversible. <br /> Are you sure?
Deletion is not reversible.
</DeleteScreenTitle>
<DeleteScreenButtons>
<PrimaryAction
Expand Down Expand Up @@ -1537,8 +1539,10 @@ const DeleteScreenContainer = styled.div`
justify-content: center;
flex-direction: column;
height: fill-available;
min-height: fit-content;
width: fill-available;
background: ${(props) => props.theme.colors.black}95;
border: 1px solid ${(props) => props.theme.colors.greyScale2};
backdrop-filter: blur(5px);
animation: increaseBlur 0.3s forwards;
position: absolute;
Expand Down Expand Up @@ -1576,7 +1580,7 @@ const DeleteScreenTitle = styled.div`
background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
margin-bottom: 20px;
margin-bottom: 15px;
padding: 0 20px;
line-height: 30px;
font-weight: 600;
Expand Down

0 comments on commit c606a39

Please sign in to comment.