Mulimage 2.0 #1

Merged
dtoro merged 64 commits from new into main 2026-05-21 22:48:55 +02:00
2 changed files with 109 additions and 108 deletions
Showing only changes of commit c783f129cc - Show all commits

View File

@@ -85,13 +85,13 @@
{#key vf.Hash} {#key vf.Hash}
<VideoPlayer <VideoPlayer
src={videoUrl(vf.Hash)} src={videoUrl(vf.Hash)}
poster={thumbUrl(pf.Hash, 'fit_1920')} poster={thumbUrl(pf.Hash, 'fit_1280')}
title={photoQuery.data.OriginalName ?? pf.Name ?? ''} title={photoQuery.data.OriginalName ?? pf.Name ?? ''}
/> />
{/key} {/key}
{:else} {:else}
<img <img
src={thumbUrl(pf.Hash, 'fit_1920')} src={thumbUrl(pf.Hash, 'fit_1280')}
alt={photoQuery.data.OriginalName ?? pf.Name ?? 'Photo'} alt={photoQuery.data.OriginalName ?? pf.Name ?? 'Photo'}
class="max-h-full max-w-full rounded-md object-contain shadow-2xl" class="max-h-full max-w-full rounded-md object-contain shadow-2xl"
/> />

View File

@@ -827,7 +827,7 @@
sampleEvery: TILE_SAMPLE, sampleEvery: TILE_SAMPLE,
}} }}
> >
<div class="p-6 pb-24"> <div class="pr-2 pl-2 pb-2 overflow-x-hidden">
{#if photosQuery.isPending} {#if photosQuery.isPending}
<SkeletonGrid /> <SkeletonGrid />
{:else if photosQuery.isError} {:else if photosQuery.isError}
@@ -841,15 +841,15 @@
{#if filters.section === "archive"} {#if filters.section === "archive"}
Archive is empty. Archive is empty.
{:else if filters.section === "review"} {:else if filters.section === "review"}
Nothing left to review. Photos PhotoPrism's indexer wasn't sure Nothing left to review. Photos PhotoPrism's indexer wasn't
about land here — use Keep to accept them into the timeline or sure about land here — use Keep to accept them into the
Archive to set them aside. timeline or Archive to set them aside.
{:else if filters.section === "hidden"} {:else if filters.section === "hidden"}
No hidden photos. PhotoPrism auto-hides files it can't index No hidden photos. PhotoPrism auto-hides files it can't index
(broken files, very low quality); they only ever show up here. (broken files, very low quality); they only ever show up here.
{:else if filters.section === "heap"} {:else if filters.section === "heap"}
This heap has no photos yet. Select some photos and use the bulk This heap has no photos yet. Select some photos and use the
bar's " Add to heap" button. bulk bar's " Add to heap" button.
{:else} {:else}
No photos. Index a folder via PhotoPrism's reindex command. No photos. Index a folder via PhotoPrism's reindex command.
{/if} {/if}
@@ -892,7 +892,8 @@
> >
{#if inWindow} {#if inWindow}
{@const sel = {@const sel =
selectedIds.has(photo.UID) || focusedUid === photo.UID} selectedIds.has(photo.UID) ||
focusedUid === photo.UID}
<PhotoTile <PhotoTile
{photo} {photo}
selected={sel} selected={sel}