UI and filter fixes (#2686)

* Use primitive string in recommendation row props
* Use unique keys in recommendation rows

The keys for the cards used while loading clash with the ids of the actual cards, causing a list unique key warning.

* List filter alignment tweaks
* Rework list hook filtering
* Internationalise checksum correctly
This commit is contained in:
DingDongSoLong4
2022-06-22 07:45:47 +02:00
committed by GitHub
parent 3b4b20e9b2
commit 63e1bbf35d
13 changed files with 171 additions and 150 deletions

View File

@@ -53,7 +53,7 @@ export function makeCriteria(type: CriterionType = "none") {
case "path":
case "checksum":
return new StringCriterion(
new MandatoryStringCriterionOption(type, type)
new MandatoryStringCriterionOption("media_info.checksum", type, type)
);
case "oshash":
return new StringCriterion(
@@ -134,7 +134,7 @@ export function makeCriteria(type: CriterionType = "none") {
case "sceneChecksum":
case "galleryChecksum":
return new StringCriterion(
new StringCriterionOption("checksum", type, "checksum")
new StringCriterionOption("media_info.checksum", type, "checksum")
);
case "phash":
return new StringCriterion(PhashCriterionOption);