Skip to content

Commit

Permalink
fix: width in PageHeader comp (#7866)
Browse files Browse the repository at this point in the history
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.

![Screenshot from 2024-10-20
00-03-39](https://github.com/user-attachments/assets/68340256-c756-4a56-9028-9aed32caf68e)

Co-authored-by: Charles Bochet <[email protected]>
  • Loading branch information
harshrajeevsingh and charlesBochet authored Oct 21, 2024
1 parent 5416773 commit 11c3f1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down

0 comments on commit 11c3f1c

Please sign in to comment.