mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
fix: width in PageHeader comp (#7866)
Fixes: #7864 This fix prevents layout issues caused by invalid CSS and ensures that the PageHeader component works correctly when no width prop is passed.  Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
parent
5416773951
commit
11c3f1c399
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ const StyledTopBarContainer = styled.div<{ width?: number }>`
|
|||
padding: ${({ theme }) => theme.spacing(2)};
|
||||
padding-left: 0;
|
||||
padding-right: ${({ theme }) => theme.spacing(3)};
|
||||
width: ${({ width }) => width + 'px' || '100%'};
|
||||
width: ${({ width }) => (width ? `${width}px` : '100%')};
|
||||
|
||||
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
||||
width: 100%;
|
||||
|
|
|
|||
Loading…
Reference in a new issue