Skip to content

Commit

Permalink
More straightforward method to keep content contained
Browse files Browse the repository at this point in the history
  • Loading branch information
Drock54651 committed Jun 8, 2024
1 parent 28fbcf2 commit bcacba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/panels/Panels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export default function Panels() {
// first time visitor
const [firstTime] = useLocalStorage({ key: 'first-time-visiting', defaultValue: true })

return ( // width: 0 prevents content from overflowing when too many tabs are open
<div style={{flexGrow: 1, width: 0}}>
return ( // overflow: hidden to prevent content from moving offscreen when too many tabs are open
<div style={{flexGrow: 1, overflow: "hidden"}}>
{panelIds.length ?
<DragTabs
tabComponent={Panel.Tab}
Expand Down

0 comments on commit bcacba5

Please sign in to comment.