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

+16
View File
@@ -29,6 +29,22 @@ export function getPosterUrl(entry: Entry): string {
return DEFAULT_POSTER;
}
/** Same source as getPosterUrl, but at original resolution. */
export function getFullPosterUrl(entry: Entry): string {
const selectedPoster = entry.isInLibrary
? entry.medias?.find((m: Media) => m.type === "poster" && m.is_selected)
: undefined;
if (selectedPoster?.path) {
return getMediaUrl("entries", "posters", "full", selectedPoster.path);
}
if (entry.poster_path) {
return getTmdbImageUrl(entry.poster_path, "original");
}
return DEFAULT_POSTER;
}
export function getBackdropUrl(entry: Entry): string {
if (entry.medias) {
const selectedBackdrop = entry.medias.find(