Skip to content

Commit 1dd0ab7

Browse files
committed
fix: PublicProfile styling
1 parent 45f8ab7 commit 1dd0ab7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/server-components/Profile/ProfileImage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use client';
22

33
import config from '@/config';
4+
import * as types from '@/typedefs/blockchain';
45
import { Skeleton } from '@heroui/skeleton';
56
import clsx from 'clsx';
67
import Image from 'next/image';
78
import { useState } from 'react';
89
import { HiUser } from 'react-icons/hi';
9-
import * as types from '@/typedefs/blockchain';
1010

1111
export default function ProfileImage({ ownerEthAddr, isSmall = false }: { ownerEthAddr: types.EthAddress; isSmall?: boolean }) {
1212
const src = `${config.backendUrl}/branding/get-brand-logo?address=${ownerEthAddr}`;
@@ -41,7 +41,7 @@ export default function ProfileImage({ ownerEthAddr, isSmall = false }: { ownerE
4141
fill
4242
sizes="128px"
4343
priority
44-
onLoadingComplete={() => setLoading(false)}
44+
onLoad={() => setLoading(false)}
4545
onError={() => {
4646
setLoading(false);
4747
setHasError(true);

app/server-components/Profile/PublicProfile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export default async function PublicProfile({
5757

5858
return (
5959
<div
60-
className={clsx('flex items-center gap-3 md:items-center md:gap-4', {
61-
'!items-start': hasDescription || hasSocialLinks,
60+
className={clsx('flex items-start gap-3 sm:items-center md:gap-4', {
61+
'!items-center': !hasDescription && !hasSocialLinks,
6262
})}
6363
>
6464
<div className="center-all relative h-[60px] w-[60px] min-w-[60px] overflow-hidden rounded-[37.5%] sm:h-[84px] sm:w-[84px] sm:min-w-[84px]">
@@ -67,7 +67,7 @@ export default async function PublicProfile({
6767
</ClientWrapper>
6868
</div>
6969

70-
<div className="col gap-2">
70+
<div className="col gap-1 sm:gap-2">
7171
<div className="col gap-0.5">
7272
<div className="card-title-big font-bold !leading-none">
7373
{publicProfileInfo?.name ? (

0 commit comments

Comments
 (0)