Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix margin error #319

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions apps/web/src/modules/dao/components/MembersList/MemberListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,22 @@ export const MemberCard = ({

return (
<Link href={`/profile/${member.address}`} passHref>
<Flex mb={'x14'} direction={{ '@initial': 'column', '@768': 'row' }}>
<Flex className={firstRowItem} align={'center'} mb={'x4'}>
<Flex
mb={'x14'}
direction={{ '@initial': 'column', '@768': 'row' }}
align={{ '@initial': 'start', '@768': 'center' }}
>
<Flex
className={firstRowItem}
align={'center'}
mb={{ '@initial': 'x4', '@768': 'x0' }}
>
<Avatar address={member.address} src={ensAvatar} size="32" />
<Text mx="x2" variant="paragraph-md">
{displayName}
</Text>
</Flex>
{isMobile ? <Flex>{gridInfo}</Flex> : gridInfo}
{isMobile ? <Flex w="100%">{gridInfo}</Flex> : gridInfo}
</Flex>
</Link>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const MembersPanel = ({
borderStyle={'solid'}
borderWidth={'normal'}
borderColor={'border'}
pt={{ '@initial': 'x8', '@768': 'x0' }}
pt={'x8'}
p={{ '@initial': 'x3', '@768': 'x6' }}
>
{!isMobile && tableRuler && <TableHeader />}
Expand Down Expand Up @@ -62,7 +62,7 @@ export const MemberCardSkeleton = ({ isMobile }: { isMobile: boolean }) => {
className={cardSkeleton}
borderRadius="normal"
backgroundColor="background2"
mb={{ '@initial': 'x14', '@768': 'x10' }}
mb={isMobile ? 'x14' : 'x10'}
/>
)
}
Loading