Skip to content

Commit

Permalink
Merge pull request #180 from serlo/fix-horizontal-scroll
Browse files Browse the repository at this point in the history
fix: hide horizontal scroll bar if content fits
  • Loading branch information
LarsTheGlidingSquirrel authored Nov 19, 2024
2 parents 6c4384f + 077fa98 commit c58e11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
backgroundColor: 'white',
// Make horizontal scroll bar appear on small width. Plugin menu, plugin toolbar, ... need some space.
minWidth: '40rem',
overflowX: 'scroll',
overflowX: 'auto',
}}
>
<aside style={{ flexGrow: 1, flexShrink: 1, flexBasis: 0 }}></aside>
Expand Down

0 comments on commit c58e11e

Please sign in to comment.