fix(ui): prevent simultaneous opening of download and share menus
Ensure that opening the download menu closes the share menu and vice versa to avoid overlapping UI elements. cc
This commit is contained in:
1 parent
9443708aad
commit
dd9eb90343
1 file changed
+4
@@ -271,10 +271,12 @@
|
||||
bind:this={shareTriggerRef}
|
||||
onmouseenter={() => {
|
||||
shareOpen = true;
|
||||
downloadOpen = false;
|
||||
setSubmenuPosition();
|
||||
}}
|
||||
onclick={() => {
|
||||
shareOpen = !shareOpen;
|
||||
downloadOpen = false;
|
||||
if (shareOpen) setSubmenuPosition();
|
||||
}}
|
||||
>
|
||||
@@ -311,10 +313,12 @@
|
||||
bind:this={downloadTriggerRef}
|
||||
onmouseenter={() => {
|
||||
downloadOpen = true;
|
||||
shareOpen = false;
|
||||
setDownloadSubmenuPosition();
|
||||
}}
|
||||
onclick={() => {
|
||||
downloadOpen = !downloadOpen;
|
||||
shareOpen = false;
|
||||
if (downloadOpen) setDownloadSubmenuPosition();
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user