diff --git a/api/queries/query.config.ts b/api/queries/query.config.ts index c2df4bb7..1c9f044b 100644 --- a/api/queries/query.config.ts +++ b/api/queries/query.config.ts @@ -5,15 +5,8 @@ export const queryConfig = { recents: 50 }, images: { - album: { - fillHeight: 300, - fillWidth: 300, - format: ImageFormat.Jpg - }, - artist: { - fillWidth: 300, - fillHeight: 400, - format: ImageFormat.Jpg - } + fillHeight: 300, + fillWidth: 300, + format: ImageFormat.Jpg } } \ No newline at end of file diff --git a/components/Global/card.tsx b/components/Global/card.tsx index 20d13922..0ef925ac 100644 --- a/components/Global/card.tsx +++ b/components/Global/card.tsx @@ -8,6 +8,7 @@ import { ImageType } from "@jellyfin/sdk/lib/generated-client/models"; import { CachedImage } from "@georstat/react-native-image-cache"; import invert from "invert-color" import { Blurhash } from "react-native-blurhash" +import { queryConfig } from "../../api/queries/query.config"; interface CardProps extends TamaguiCardProps { artistName?: string; @@ -24,7 +25,7 @@ export function Card(props: CardProps) { const [imageLoaded, setImageLoaded] = useState(false); const dimensions = props.artistName ? cardDimensions.artist : cardDimensions.album; - const cardTextColor = props.blurhash ? invert(Blurhash.getAverageColor(props.blurhash)!, true) : undefined; + const cardTextColor = props.blurhash ? invert(Blurhash.getAverageColor(props.blurhash)!) : undefined; return ( { props.children && ( -

{ props.children }

+

{ props.children }

)}
@@ -61,7 +62,7 @@ export function Card(props: CardProps) { .getItemImageUrlById( props.itemId, ImageType.Primary, - { ...dimensions}) + { ...queryConfig.images}) } imageStyle={{ ...dimensions,