📱(frontend) enhance team info style to avoid layout shift
On small screens, padding and alignment were causing texts to render wrapped. It might be a personal choice, but I decided to give more space to the text, thus avoiding text to wrap and ending up in increasing team info's height. This issue arises when closing / opening the panel menu.
This commit is contained in:
committed by
aleb_the_flash
parent
e8aba29a68
commit
97cec8901c
@@ -67,15 +67,12 @@ export const TeamInfo = ({ team, currentRole }: TeamInfoProps) => {
|
||||
</Box>
|
||||
<Box
|
||||
className="p-s"
|
||||
$gap="2rem"
|
||||
$gap="3rem"
|
||||
$direction="row"
|
||||
$justify="start"
|
||||
$css={`
|
||||
border-top: 1px solid ${colorsTokens()['card-border']};
|
||||
padding-left: 1.5rem;
|
||||
@media (min-width: 768px) {
|
||||
padding-left: 6rem;
|
||||
}
|
||||
`}
|
||||
>
|
||||
<Text $size="s" as="p">
|
||||
|
||||
Reference in New Issue
Block a user