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:
@ -31,7 +31,7 @@ const StyledTopBarContainer = styled.div<{ width?: number }>`
|
|||||||
padding: ${({ theme }) => theme.spacing(2)};
|
padding: ${({ theme }) => theme.spacing(2)};
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: ${({ theme }) => theme.spacing(3)};
|
padding-right: ${({ theme }) => theme.spacing(3)};
|
||||||
width: ${({ width }) => width + 'px' || '100%'};
|
width: ${({ width }) => (width ? `${width}px` : '100%')};
|
||||||
|
|
||||||
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user