fix(ui): revert sticky album overlay and stabilize menu positioning

This commit is contained in:
vicrodh committed 2026-01-14 02:10:30 -06:00
1 parent 64af963608
commit 1e562264ea
2 files changed
+9 -10

No files matched your search

+2 -5
View File
@@ -65,7 +65,6 @@
const showFavoriteButton = $derived(showFavorite ?? !!albumId);
const favoriteAvailable = $derived(favoriteEnabled ?? !!albumId);
const hasOverlay = $derived(!!(showFavoriteButton || onPlay || hasMenu));
let menuOpen = $state(false);
function handleImageError() {
imageError = true;
@@ -160,7 +159,7 @@
<!-- Action Overlay -->
{#if hasOverlay}
<div class="action-overlay" class:menu-open={menuOpen}>
<div class="action-overlay">
<div class="action-buttons">
{#if showFavoriteButton}
<button
@@ -189,7 +188,6 @@
onShareQobuz={onShareQobuz}
onShareSonglink={onShareSonglink}
onDownload={onDownload}
onOpenChange={(open) => (menuOpen = open)}
/>
</div>
{/if}
@@ -291,8 +289,7 @@
}
.album-card:hover .action-overlay,
.action-overlay:focus-within,
.action-overlay.menu-open {
.action-overlay:focus-within {
opacity: 1;
}