mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03: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 && (
|
||||
<div
|
||||
class={`status-actions ${isContextMenuOpen ? 'open' : ''}`}
|
||||
class={`status-actions ${
|
||||
isContextMenuOpen === 'actions-bar' ? 'open' : ''
|
||||
}`}
|
||||
ref={actionsRef}
|
||||
>
|
||||
<StatusButton
|
||||
|
@ -1369,7 +1371,7 @@ function Status({
|
|||
direction: 'bottom',
|
||||
gap: 4,
|
||||
});
|
||||
setIsContextMenuOpen(true);
|
||||
setIsContextMenuOpen('actions-bar');
|
||||
}}
|
||||
>
|
||||
<Icon icon="more2" size="m" alt="More" />
|
||||
|
|
Loading…
Reference in a new issue