Skip to content

Commit 3b74608

Browse files
miyukocwhitequark
authored andcommitted
Fix scroll bar flicker.
1 parent 3ae11ea commit 3b74608

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ function AppContent() {
274274
setShareURL(url);
275275
}
276276

277-
function tabAndPanel({ key, title, titleStyle = {}, content }) {
277+
function tabAndPanel({ key, title, titleStyle = {}, content, contentStyle = {} }) {
278278
return [
279279
<Tab key={`${key}-tab`} value={key} style={titleStyle}>{title}</Tab>,
280-
<TabPanel key={`${key}-tabpanel`} value={key} sx={{ padding: 0 }}>{content}</TabPanel>
280+
<TabPanel key={`${key}-tabpanel`} value={key} sx={{ padding: 0, ...contentStyle }}>{content}</TabPanel>
281281
];
282282
}
283283

@@ -427,7 +427,8 @@ function AppContent() {
427427
actions={amaranthSourceEditorActions}
428428
padding={{ top: 10, bottom: 10 }}
429429
focus
430-
/>
430+
/>,
431+
contentStyle: { overflow: 'hidden' },
431432
})
432433
];
433434

0 commit comments

Comments
 (0)