💄(frontend) improve DocsGridItem responsive padding

- Adjusted padding and alignment for desktop and mobile views
- Conditionally applied CSS styles based on screen size
This commit is contained in:
Nathan Panchout
2025-01-28 09:23:01 +01:00
parent dd8bb18f69
commit b93b43abe8
2 changed files with 9 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ and this project adheres to
## Changed
- 💄(frontend) add abilities on doc row #581
- 💄(frontend) improve DocsGridItem responsive padding #582
## [2.0.1] - 2025-01-17

View File

@@ -68,10 +68,14 @@ export const DocsGridItem = ({ doc }: DocsGridItemProps) => {
<SimpleDocItem isPinned={doc.is_favorite} doc={doc} />
{showAccesses && (
<Box
$padding={{ top: '3xs' }}
$css={css`
align-self: flex-start;
`}
$padding={{ top: !isDesktop ? '4xs' : undefined }}
$css={
!isDesktop
? css`
align-self: flex-start;
`
: undefined
}
>
<Tooltip
content={