chore(format): fix prettier drift on plex pickers landed on main

`prettier --check` was red on main for these two files (drifted in the
collection-review-tail merge); no logic change, format-only.
This commit is contained in:
2026-08-23 21:59:41 +02:00
parent 38921fb997
commit 64dde6fd36
2 changed files with 9 additions and 7 deletions
@@ -41,13 +41,19 @@ export default function PlexLibraryPicker({
if (debounced.length === 0) return <>{emptyHint}</>;
if (q.isLoading) return <LoadingState label={t("plex.loading")} />;
if (q.isError) return <p className="text-muted text-sm">{t("common.loadError")}</p>;
if (results.length === 0) return <p className="text-muted text-sm">{t("plex.collection.addNoResults")}</p>;
if (results.length === 0)
return <p className="text-muted text-sm">{t("plex.collection.addNoResults")}</p>;
return (
<ul className="flex flex-col gap-1">
{results.map((c) => (
<li key={c.id} className="flex items-center gap-3">
<img src={c.thumb} alt="" className="h-12 w-8 shrink-0 rounded object-cover" loading="lazy" />
<img
src={c.thumb}
alt=""
className="h-12 w-8 shrink-0 rounded object-cover"
loading="lazy"
/>
<span className="min-w-0 flex-1 truncate text-sm">
{c.title}
{c.year != null && <span className="text-muted"> · {c.year}</span>}
+1 -5
View File
@@ -96,11 +96,7 @@ function NewCollectionPanel({
onCreated(col.id);
} catch (e) {
// The backend is authoritative on per-library name uniqueness — its 409 is localized to nameTaken.
notifyCollectionEditError(
e,
t("plex.collection.editFailed"),
t("plex.collection.nameTaken"),
);
notifyCollectionEditError(e, t("plex.collection.editFailed"), t("plex.collection.nameTaken"));
setBusy(false);
}
}