Skip to content

Commit b93b43a

Browse files
💄(frontend) improve DocsGridItem responsive padding
- Adjusted padding and alignment for desktop and mobile views - Conditionally applied CSS styles based on screen size
1 parent dd8bb18 commit b93b43a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to
1919
## Changed
2020

2121
- 💄(frontend) add abilities on doc row #581
22+
- 💄(frontend) improve DocsGridItem responsive padding #582
2223

2324

2425
## [2.0.1] - 2025-01-17

src/frontend/apps/impress/src/features/docs/docs-grid/components/DocsGridItem.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ export const DocsGridItem = ({ doc }: DocsGridItemProps) => {
6868
<SimpleDocItem isPinned={doc.is_favorite} doc={doc} />
6969
{showAccesses && (
7070
<Box
71-
$padding={{ top: '3xs' }}
72-
$css={css`
73-
align-self: flex-start;
74-
`}
71+
$padding={{ top: !isDesktop ? '4xs' : undefined }}
72+
$css={
73+
!isDesktop
74+
? css`
75+
align-self: flex-start;
76+
`
77+
: undefined
78+
}
7579
>
7680
<Tooltip
7781
content={

0 commit comments

Comments
 (0)