Skip to content

Commit

Permalink
fixing aside in little screen
Browse files Browse the repository at this point in the history
  • Loading branch information
isyuricunha committed May 8, 2024
1 parent 306a451 commit 9d72eab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/MDXComponents/Aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ export const Aside = ({
return (
<chakra.aside
position="relative"
py={'24px'}
py={['16px', '24px']} // Ajuste a altura do padding responsivamente
mt={4}
mx={'-32px'}
mx={['-16px', '-32px']} // Ajuste as margens responsivamente
borderRadius="6px 6px 6px 3px"
px={'32px'}
borderLeft={'4px solid'}
px={['16px', '32px']} // Ajuste o padding horizontal responsivamente
borderLeft={['4px solid', 'none']} // Remova a borda esquerda em telas menores
borderColor={useColorModeValue(
`${colors[type]}.500`,
`${colors[type]}.400`
)}
maxWidth={['100%', '600px']} // Limita a largura do aside em telas menores
margin="auto" // Centraliza o aside horizontalmente
//@ts-expect-error transparentize tools return string, but types are not applicable.
bg={useColorModeValue(
`${colors[type]}.100`,
Expand Down

1 comment on commit 9d72eab

@vercel
Copy link

@vercel vercel bot commented on 9d72eab May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.