- ensure gallery viewer has view icon

- ensure view icon is above video thumbnail
This commit is contained in:
CJPeckover
2025-09-16 13:00:41 -04:00
parent 360b1fea2d
commit 669a7a9a10
2 changed files with 16 additions and 15 deletions

View File

@@ -319,19 +319,6 @@
</a>
{/if}
<!-- View Asset while selecting -->
{#if mouseOver && selectionActive}
<button
type="button"
onclick={onViewerIconClickedHandler}
class={['absolute focus:outline-none bottom-2 end-2', { 'cursor-not-allowed': disabled }]}
tabindex={-1}
{disabled}
>
<Icon path={mdiMagnifyPlusOutline} size="24" class="text-white/80 hover:text-white" />
</button>
{/if}
<ImageThumbnail
class={imageClass}
{brokenAssetClass}
@@ -366,6 +353,19 @@
</div>
{/if}
<!-- View Asset while selecting -->
{#if mouseOver && selectionActive}
<button
type="button"
onclick={onViewerIconClickedHandler}
class={['absolute focus:outline-none bottom-2 end-2', { 'cursor-not-allowed': disabled }]}
tabindex={-1}
{disabled}
>
<Icon path={mdiMagnifyPlusOutline} size="24" class="text-white/80 hover:text-white" />
</button>
{/if}
{#if (!loaded || thumbError) && asset.thumbhash}
<canvas
use:thumbhash={{ base64ThumbHash: asset.thumbhash }}

View File

@@ -494,8 +494,8 @@
>
<Thumbnail
readonly={disableAssetSelect}
onClick={() => {
if (assetInteraction.selectionActive) {
onClick={(asset, forceView: boolean = false) => {
if (assetInteraction.selectionActive && !forceView) {
handleSelectAssets(toTimelineAsset(currentAsset));
return;
}
@@ -507,6 +507,7 @@
asset={toTimelineAsset(currentAsset)}
selected={assetInteraction.hasSelectedAsset(currentAsset.id)}
selectionCandidate={assetInteraction.hasSelectionCandidate(currentAsset.id)}
selectionActive={assetInteraction.selectionActive}
thumbnailWidth={layout.width}
thumbnailHeight={layout.height}
/>