mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-20 16:50:33 -05:00
make artist page not overflow the edges
This commit is contained in:
@@ -11,7 +11,7 @@ import { CachedImage } from "@georstat/react-native-image-cache";
|
||||
import { ImageType } from "@jellyfin/sdk/lib/generated-client/models";
|
||||
import { queryConfig } from "@/api/queries/query.config";
|
||||
import { getImageApi } from "@jellyfin/sdk/lib/utils/api";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
import { SafeAreaView, useSafeAreaFrame } from "react-native-safe-area-context";
|
||||
|
||||
interface ArtistProps {
|
||||
artistId: string,
|
||||
@@ -25,7 +25,7 @@ export default function Artist(props: ArtistProps): React.JSX.Element {
|
||||
|
||||
const { apiClient } = useApiClientContext();
|
||||
|
||||
const { width } = useWindowDimensions();
|
||||
const { width } = useSafeAreaFrame();
|
||||
|
||||
const { data: albums } = useArtistAlbums(props.artistId, apiClient!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user