Fix styling for OfflineNotice in ObsDetails photos (#2541)

This commit is contained in:
Amanda Bullington
2024-12-10 13:01:53 -08:00
committed by GitHub
parent 03884dc3c0
commit 2c65d2fa3f

View File

@@ -2,7 +2,7 @@
import classnames from "classnames";
import { ActivityIndicator, OfflineNotice } from "components/SharedComponents";
import { Image, Pressable } from "components/styledComponents";
import { Image, Pressable, View } from "components/styledComponents";
import type { Node } from "react";
import React, { useState } from "react";
import Photo from "realmModels/Photo";
@@ -92,10 +92,16 @@ const PhotoContainer = ( { photo, onPress, style }: Props ): Node => {
{renderLoadingIndicator( )}
{image}
{loadSuccess === false && (
<OfflineNotice
onPress={( ) => setLoadSuccess( null )}
color="white"
/>
<View className={classnames(
"h-72",
"w-screen"
)}
>
<OfflineNotice
onPress={( ) => setLoadSuccess( null )}
color="white"
/>
</View>
)}
</Pressable>
);