Skip to content

Commit 6521dcd

Browse files
yeion7CompuIves
authored andcommitted
tabs scroll (codesandbox#2725)
1 parent 4b5377a commit 6521dcd

File tree

2 files changed

+4
-2
lines changed
  • packages/app/src/app

2 files changed

+4
-2
lines changed

packages/app/src/app/components/Preview/DevTools/Tabs/elements.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const Container = styled.div`
44
display: flex;
55
flex: auto;
66
margin-right: 1rem;
7+
overflow-x: auto;
78
`;
89

910
export const Tabs = styled.div`

packages/app/src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,9 @@ class EditorPreview extends React.Component {
493493
}
494494
pane2Style={{
495495
visibility: windowVisible ? 'visible' : 'hidden',
496-
maxWidth: windowVisible ? 'inherit' : 0,
497-
width: windowVisible ? 'inherit' : 0,
496+
maxWidth: windowVisible ? '100%' : 0,
497+
width: windowVisible ? '100%' : 0,
498+
overflow: 'hidden',
498499
zIndex: 0, // For VSCode hovers, beware this is also dynamically changed in PreviewTabs
499500
}}
500501
>

0 commit comments

Comments
 (0)