Skip to content

Commit 7e41f3d

Browse files
committed
Redesign LocalBrowser card hover overlay with clearer hierarchy
Three peer buttons (Use / Wallpaper only / Preview) overflowed narrow 180-220px cards and gave the eye no anchor. Now: centered "Use" as the prominent primary action (accent fill, fixed min-width), with secondary "Wallpaper only · Preview" as inline text links below. Scrim alpha bumped from 50 to 60 to match the rest of the wallpaper-overlay convention.
1 parent d18d1aa commit 7e41f3d

1 file changed

Lines changed: 21 additions & 12 deletions

File tree

frontend/src/lib/components/local/LocalBrowser.svelte

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -377,25 +377,34 @@
377377
</svg>
378378
</button>
379379
<div
380-
class="pointer-events-none absolute inset-0 flex items-center justify-center gap-2 bg-black/50 opacity-0 transition-opacity duration-150 group-hover:opacity-100"
380+
class="pointer-events-none absolute inset-0 flex flex-col items-center justify-center gap-2 bg-black/60 opacity-0 transition-opacity duration-150 group-hover:opacity-100"
381381
>
382382
<button
383-
class="bg-accent hover:bg-accent-hover pointer-events-auto px-4 py-1.5 text-[11px] font-medium text-[#111116] transition-colors"
383+
class="bg-accent hover:bg-accent-hover pointer-events-auto min-w-[7rem] px-4 py-1.5 text-[11px] font-medium text-[#111116] transition-colors"
384384
onclick={() => selectWallpaper(wp.path)}
385385
title="Set as wallpaper and open in editor"
386386
>Use</button
387387
>
388-
<button
389-
class="text-fg-primary bg-bg-elevated hover:bg-border-focus pointer-events-auto px-3 py-1.5 text-[11px] font-medium transition-colors disabled:opacity-50"
390-
onclick={() => applyWallpaperOnly(wp.path)}
391-
disabled={getIsApplying()}
392-
title="Apply this wallpaper without changing the current palette"
393-
>Wallpaper only</button
394-
>
395-
<button
396-
class="text-fg-primary bg-bg-elevated hover:bg-border-focus pointer-events-auto px-3 py-1.5 text-[11px] font-medium transition-colors"
397-
onclick={() => handlePreview(i)}>Preview</button
388+
<div
389+
class="flex items-center gap-2 text-[10px] text-white/85"
398390
>
391+
<button
392+
class="pointer-events-auto px-1 transition-colors hover:text-white disabled:opacity-50"
393+
onclick={() => applyWallpaperOnly(wp.path)}
394+
disabled={getIsApplying()}
395+
title="Apply this wallpaper without changing the current palette"
396+
>Wallpaper only</button
397+
>
398+
<span class="text-white/30" aria-hidden="true"
399+
>·</span
400+
>
401+
<button
402+
class="pointer-events-auto px-1 transition-colors hover:text-white"
403+
onclick={() => handlePreview(i)}
404+
title="Preview wallpaper full-size"
405+
>Preview</button
406+
>
407+
</div>
399408
</div>
400409
<div class="flex items-center gap-1.5 px-2 py-1">
401410
<TagPicker path={wp.path} />

0 commit comments

Comments
 (0)