Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b35f3b

Browse files
fix(site): add horizontal scroll when having many tabs (coder#8998)
1 parent 7fceb9a commit 7b35f3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/src/components/TemplateFiles/TemplateFiles.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const useStyles = makeStyles((theme) => ({
8787
alignItems: "baseline",
8888
borderBottom: `1px solid ${theme.palette.divider}`,
8989
gap: 1,
90+
overflowX: "auto",
9091
},
9192

9293
tab: {
@@ -101,6 +102,7 @@ const useStyles = makeStyles((theme) => ({
101102
gap: theme.spacing(0.5),
102103
position: "relative",
103104
color: theme.palette.text.secondary,
105+
whiteSpace: "nowrap",
104106

105107
"& svg": {
106108
width: 22,

0 commit comments

Comments
 (0)