mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 22:26:57 +01:00
Differentiate menu open from right-click vs actions bar
Kinda hacky for now
This commit is contained in:
parent
1017d1d270
commit
b8484eff79
1 changed files with 4 additions and 2 deletions
|
@ -1322,7 +1322,9 @@ function Status({
|
||||||
)}
|
)}
|
||||||
{showActionsBar && size !== 'l' && !previewMode && !readOnly && (
|
{showActionsBar && size !== 'l' && !previewMode && !readOnly && (
|
||||||
<div
|
<div
|
||||||
class={`status-actions ${isContextMenuOpen ? 'open' : ''}`}
|
class={`status-actions ${
|
||||||
|
isContextMenuOpen === 'actions-bar' ? 'open' : ''
|
||||||
|
}`}
|
||||||
ref={actionsRef}
|
ref={actionsRef}
|
||||||
>
|
>
|
||||||
<StatusButton
|
<StatusButton
|
||||||
|
@ -1369,7 +1371,7 @@ function Status({
|
||||||
direction: 'bottom',
|
direction: 'bottom',
|
||||||
gap: 4,
|
gap: 4,
|
||||||
});
|
});
|
||||||
setIsContextMenuOpen(true);
|
setIsContextMenuOpen('actions-bar');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon icon="more2" size="m" alt="More" />
|
<Icon icon="more2" size="m" alt="More" />
|
||||||
|
|
Loading…
Reference in a new issue