Add poster popup, selectable title, collection media previews and library toggles

- Collection edit dialog shows the current poster and backdrop when available
- Entry details: title is selectable (action row no longer overlays it)
- Entry details: clicking the poster opens it full size in a dialog
- Library: Favorites and Hidden are toggles that combine with the type tabs
This commit is contained in:
X4Lo committed 2026-11-03 18:39:03 +00:00
1 parent c74e54bc2a
commit 834e02e76b
6 files changed
+258 -114

No files matched your search

+13 -3
View File
@@ -2,7 +2,7 @@ import { getMediaUrl, getTmdbImageUrl } from "@/lib/api";
import { getBackdropUrl, getPosterUrl } from "@/lib/media-utils";
import type { Collection, Media } from "@/types";
const DEFAULT_POSTER = "/images/default-poster.png";
export const DEFAULT_POSTER = "/images/default-poster.png";
/**
* Collection poster: uploaded poster, then the collection's own TMDB poster,
@@ -13,7 +13,12 @@ export function getCollectionDisplayPosterUrl(collection: Collection): string {
(m: Media) => m.type === "poster" && m.is_selected,
);
if (selectedPoster?.path) {
return getMediaUrl("collections", "posters", "preview", selectedPoster.path);
return getMediaUrl(
"collections",
"posters",
"preview",
selectedPoster.path,
);
}
if (collection.poster_path) {
@@ -39,7 +44,12 @@ export function getCollectionDisplayBackdropUrl(
(m: Media) => m.type === "backdrop" && m.is_selected,
);
if (selectedBackdrop?.path) {
return getMediaUrl("collections", "backdrops", "full", selectedBackdrop.path);
return getMediaUrl(
"collections",
"backdrops",
"full",
selectedBackdrop.path,
);
}
if (collection.backdrop_path) {