Change Item Card to use object contain by default for images (#1020)

* feat: add legacy image fit preference and adjustable image display in card component

* feat: add blurred bg image when object contain

* fix: add alt text for image and improve objectContain
This commit is contained in:
Tonya
2025-09-24 16:09:15 +01:00
committed by GitHub
parent 33ec0c4aff
commit f66624774e
4 changed files with 28 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ export type LocationViewPreferences = {
enabled: boolean;
}[];
displayLegacyHeader: boolean;
legacyImageFit: boolean;
language?: string;
overrideFormatLocale?: string;
duplicateSettings: DuplicateSettings;
@@ -47,6 +48,7 @@ export function useViewPreferences(): Ref<LocationViewPreferences> {
theme: "homebox",
itemsPerTablePage: 10,
displayLegacyHeader: false,
legacyImageFit: false,
language: null,
overrideFormatLocale: null,
duplicateSettings: {