refactor: mobile popover UX (#2140)

This commit is contained in:
Aman Harwara
2023-01-18 01:00:23 +05:30
committed by GitHub
parent 7af4ecbc3d
commit baf77516fe
33 changed files with 237 additions and 117 deletions

View File

@@ -905,10 +905,12 @@ class NoteView extends AbstractComponent<NoteViewProps, State> {
</div>
)}
</div>
<LinkedItemBubblesContainer
item={this.note}
linkingController={this.viewControllerManager.linkingController}
/>
<div className="hidden md:block">
<LinkedItemBubblesContainer
item={this.note}
linkingController={this.viewControllerManager.linkingController}
/>
</div>
</div>
)}

View File

@@ -109,6 +109,7 @@ export default function BlockPickerMenuPlugin(): JSX.Element {
return (
<Popover
title="Block picker"
align="start"
anchorElement={anchorElementRef.current}
open={true}

View File

@@ -96,6 +96,7 @@ export const ItemSelectionPlugin: FunctionComponent<Props> = ({ currentNote }) =
return (
<Popover
title="Select item"
align="start"
anchorElement={anchorElementRef.current}
open={true}