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:
vicrodh committed 2026-01-15 07:40:17 -06:00
1 parent 9443708aad
commit dd9eb90343
1 file changed
+4
+4
View File
@@ -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();
}}
>