Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
💄 Fix overflow issue on news screen action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Macludde committed Sep 4, 2023
1 parent c7167c6 commit 4ade5b4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/components/News/NewsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,19 @@ export default function NewsPage() {
<PageHeader noMargin>{t('news')}</PageHeader>
<Stack
direction="row"
gap={2}
gap={1}
sx={{
maxWidth: 'calc(100% + 4rem)',
overflowX: 'auto',
mt: -2,
pt: 2,
'&::-webkit-scrollbar': {
display: 'none',
},
mx: -2,
px: 2,
'& *': {
whiteSpace: 'nowrap',
overflow: 'hidden',
flexShrink: 0,
},
}}
Expand All @@ -72,9 +75,7 @@ export default function NewsPage() {
)}
{(hasAccess(apiContext, 'news:article:manage') || requests?.articleRequests?.length > 0) && (
<Badge
badgeContent={(requests?.articleRequests?.length ?? 0) === 0
? undefined
: requests?.articleRequests?.length}
badgeContent={2}
color="primary"
>
<Button
Expand Down

0 comments on commit 4ade5b4

Please sign in to comment.