Merge branch 'web-ui-improvement' into refactor-main

This commit is contained in:
ckt1031 2023-07-31 21:51:04 +08:00
commit 64d4d33092
2 changed files with 35 additions and 16 deletions

View File

@ -2,7 +2,8 @@ body {
margin: 0;
padding-top: 55px;
overflow-y: scroll;
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, "Microsoft YaHei", sans-serif;
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, 'Microsoft YaHei',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scrollbar-width: none;
@ -13,7 +14,8 @@ body::-webkit-scrollbar {
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
.main-content {
@ -33,3 +35,20 @@ code {
display: none !important;
}
}
.scrollable-tabs .menu {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
.scrollable-tabs .menu .item {
white-space: nowrap;
flex: 0 0 auto;
}
.scrollable-tabs .menu .item.active {
border-bottom: none;
}

View File

@ -47,7 +47,7 @@ const Setting = () => {
return (
<Segment>
<Tab menu={{ secondary: true, pointing: true }} panes={panes} />
<Tab menu={{ secondary: true, pointing: true }} panes={panes} className="scrollable-tabs" />
</Segment>
);
};