Skip to content

Commit

Permalink
show site logo on web
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Nov 7, 2024
1 parent 6477842 commit c4cb45c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions frontend/packages/ui/src/site-logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
UnpackedHypermediaId,
useRouteLink,
} from "@shm/shared";
import {Image} from "@tamagui/image";
import {XStack} from "@tamagui/stacks";
import {SizableText} from "@tamagui/text";
import {HMIcon} from "./hm-icon";
Expand All @@ -22,12 +21,11 @@ export function SiteLogo({
});
if (metadata?.seedExperimentalLogo) {
return (
<XStack {...homeLinkProps} maxHeight={60} flex={1}>
<Image
<XStack {...homeLinkProps} height={60} flex={1} ai="center" jc="center">
<img
src={getFileUrl(metadata.seedExperimentalLogo)}
height={60}
flex={1}
source={{uri: getFileUrl(metadata.seedExperimentalLogo)}}
resizeMode="contain"
style={{objectFit: "contain"}}
/>
</XStack>
);
Expand Down

0 comments on commit c4cb45c

Please sign in to comment.