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

@@ -83,6 +83,7 @@ const ContextMenuCell = ({
<Icon type="more" />
</button>
<Popover
title="File options"
open={contextMenuVisible}
anchorElement={anchorElementRef.current}
togglePopover={() => {
@@ -153,6 +154,7 @@ const ItemLinksCell = ({
<Icon type="link" />
</button>
<Popover
title="Linked items"
open={contextMenuVisible}
anchorElement={anchorElementRef.current}
togglePopover={() => {
@@ -425,6 +427,7 @@ const ContentTableView = ({
<Table table={table} />
{contextMenuPosition && contextMenuItem && (
<Popover
title="Options"
open={true}
anchorPoint={contextMenuPosition}
togglePopover={() => {