logo fixes on cards

This commit is contained in:
Violet Caulfield
2024-12-29 09:51:04 -06:00
parent b2bbaa9978
commit 823ad65361
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ export const queryConfig = {
format: ImageFormat.Jpg
},
logos: {
fillHeight: 50,
fillWidth: 50,
fillHeight: 100,
fillWidth: 100,
format: ImageFormat.Png
}
}
+2 -1
View File
@@ -30,6 +30,7 @@ export function Card(props: CardProps) {
const cardTextColor = props.blurhash ? invert(Blurhash.getAverageColor(props.blurhash)!, true) : undefined;
const logoDimensions = props.width && typeof(props.width) === "number" ? { width: props.width / 4, height: props.width / 4 }: { width: 35, height: 35 };
const cardLogoSource = getImageApi(apiClient!).getItemImageUrlById(props.itemId, ImageType.Logo);
return (
@@ -55,7 +56,7 @@ export function Card(props: CardProps) {
{ ...queryConfig.logos})
}
imageStyle={{
...dimensions,
...logoDimensions,
borderRadius: props.cornered ? 2 : 25
}}
/>