mirror of
https://github.com/immich-app/immich.git
synced 2025-06-22 06:50:54 -04:00
fix: meta+click on thumbnail (#18648)
This commit is contained in:
parent
9557395991
commit
118dc8cf5a
@ -104,8 +104,10 @@
|
|||||||
|
|
||||||
const handleClick = (e: MouseEvent) => {
|
const handleClick = (e: MouseEvent) => {
|
||||||
if (e.ctrlKey || e.metaKey) {
|
if (e.ctrlKey || e.metaKey) {
|
||||||
|
window.open(currentUrlReplaceAssetId(asset.id), '_blank');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
callClickHandlers();
|
callClickHandlers();
|
||||||
@ -249,19 +251,6 @@
|
|||||||
>
|
>
|
||||||
<!-- icon overlay -->
|
<!-- icon overlay -->
|
||||||
<div>
|
<div>
|
||||||
{#if !usingMobileDevice && mouseOver && !disableLinkMouseOver}
|
|
||||||
<!-- lazy show the url on mouse over-->
|
|
||||||
<a
|
|
||||||
class="absolute w-full top-0 bottom-0"
|
|
||||||
style:cursor="unset"
|
|
||||||
href={currentUrlReplaceAssetId(asset.id)}
|
|
||||||
onclick={(evt) => evt.preventDefault()}
|
|
||||||
tabindex={-1}
|
|
||||||
aria-label="Thumbnail URL"
|
|
||||||
>
|
|
||||||
</a>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<!-- Gradient overlay on hover -->
|
<!-- Gradient overlay on hover -->
|
||||||
{#if !usingMobileDevice && !disabled}
|
{#if !usingMobileDevice && !disabled}
|
||||||
<div
|
<div
|
||||||
@ -320,6 +309,20 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- lazy show the url on mouse over-->
|
||||||
|
{#if !usingMobileDevice && mouseOver && !disableLinkMouseOver}
|
||||||
|
<a
|
||||||
|
class="absolute w-full top-0 bottom-0"
|
||||||
|
style:cursor="unset"
|
||||||
|
href={currentUrlReplaceAssetId(asset.id)}
|
||||||
|
onclick={(evt) => evt.preventDefault()}
|
||||||
|
tabindex={-1}
|
||||||
|
aria-label="Thumbnail URL"
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<ImageThumbnail
|
<ImageThumbnail
|
||||||
class={imageClass}
|
class={imageClass}
|
||||||
{brokenAssetClass}
|
{brokenAssetClass}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user