Skip to content

Commit

Permalink
fix: mouse hover over stack (immich-app#13119)
Browse files Browse the repository at this point in the history
fix: mouse hover on stack
  • Loading branch information
martabal authored Oct 2, 2024
1 parent 4ea281f commit e7862fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/src/lib/components/asset-viewer/asset-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@
preloadAssets = index + 1 >= stackedAssets.length ? [] : [stackedAssets[index + 1]];
}}
onMouseEvent={({ isMouseOver }) => handleStackedAssetMouseEvent(isMouseOver, stackedAsset)}
disableMouseOver
readonly
thumbnailSize={stackedAsset.id == asset.id ? 65 : 60}
showStackedIcon={false}
Expand Down
3 changes: 2 additions & 1 deletion web/src/lib/components/assets/thumbnail/thumbnail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
export let readonly = false;
export let showArchiveIcon = false;
export let showStackedIcon = true;
export let disableMouseOver = false;
export let intersectionConfig: {
root?: HTMLElement;
bottom?: string;
Expand Down Expand Up @@ -207,7 +208,7 @@
on:click={handleClick}
role="link"
>
{#if mouseOver}
{#if mouseOver && !disableMouseOver}
<!-- lazy show the url on mouse over-->
<a
class="absolute z-30 {className} top-[41px]"
Expand Down

0 comments on commit e7862fc

Please sign in to comment.