diff --git a/app/wallpaper.tsx b/app/wallpaper.tsx
index 06dcc54..08ae1b6 100644
--- a/app/wallpaper.tsx
+++ b/app/wallpaper.tsx
@@ -6,12 +6,16 @@ import { Ionicons } from "@expo/vector-icons";
import { useRouter } from "expo-router";
import { Image, Text, View, TouchableOpacity, Alert } from "react-native";
import { useState } from "react";
-import { SafeAreaView } from "react-native-safe-area-context";
+import {
+ SafeAreaView,
+ useSafeAreaInsets,
+} from "react-native-safe-area-context";
export default function WallpaperPage() {
const selectedWallpaper = useStore((store) => store.selectedWallpaper);
const [isDownloading, setIsDownloading] = useState(false);
const router = useRouter();
+ const safeArea = useSafeAreaInsets();
if (!selectedWallpaper) {
return null;
@@ -84,28 +88,35 @@ export default function WallpaperPage() {
-
- {selectedWallpaper.creator_name ? (
-
- {selectedWallpaper.creator_name}
- {selectedWallpaper.is_ai_generated ? " · AI Generated" : ""}
-
- ) : null}
- {selectedWallpaper.source_url ? (
- {
- openSourceUrl();
- }}
- >
-
- {selectedWallpaper.source_url}
+ {Boolean(selectedWallpaper.creator_name) ||
+ Boolean(selectedWallpaper.source_url) ? (
+
+ {selectedWallpaper.creator_name ? (
+
+ {selectedWallpaper.creator_name}
+ {selectedWallpaper.is_ai_generated ? " · AI Generated" : ""}
-
- ) : null}
-
+ ) : null}
+ {selectedWallpaper.source_url ? (
+ {
+ openSourceUrl();
+ }}
+ >
+
+ {selectedWallpaper.source_url}
+
+
+ ) : null}
+
+ ) : null}