1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-17 01:06:46 +01:00

fix: mouse hover over stack (#13119)

fix: mouse hover on stack
This commit is contained in:
martin 2024-10-02 17:04:21 +02:00 committed by GitHub
parent 4ea281f854
commit e7862fc0f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -590,6 +590,7 @@
preloadAssets = index + 1 >= stackedAssets.length ? [] : [stackedAssets[index + 1]]; preloadAssets = index + 1 >= stackedAssets.length ? [] : [stackedAssets[index + 1]];
}} }}
onMouseEvent={({ isMouseOver }) => handleStackedAssetMouseEvent(isMouseOver, stackedAsset)} onMouseEvent={({ isMouseOver }) => handleStackedAssetMouseEvent(isMouseOver, stackedAsset)}
disableMouseOver
readonly readonly
thumbnailSize={stackedAsset.id == asset.id ? 65 : 60} thumbnailSize={stackedAsset.id == asset.id ? 65 : 60}
showStackedIcon={false} showStackedIcon={false}

View file

@ -44,6 +44,7 @@
export let readonly = false; export let readonly = false;
export let showArchiveIcon = false; export let showArchiveIcon = false;
export let showStackedIcon = true; export let showStackedIcon = true;
export let disableMouseOver = false;
export let intersectionConfig: { export let intersectionConfig: {
root?: HTMLElement; root?: HTMLElement;
bottom?: string; bottom?: string;
@ -207,7 +208,7 @@
on:click={handleClick} on:click={handleClick}
role="link" role="link"
> >
{#if mouseOver} {#if mouseOver && !disableMouseOver}
<!-- lazy show the url on mouse over--> <!-- lazy show the url on mouse over-->
<a <a
class="absolute z-30 {className} top-[41px]" class="absolute z-30 {className} top-[41px]"