chore(mobile): hide scrollbar (#5339)

This commit is contained in:
Zeke Zhang 2024-09-29 08:33:53 +08:00 committed by GitHub
parent 6b07fc4352
commit 4130d1d180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View File

@ -1,5 +1,3 @@
// the custom style for desktop
@media (min-width: 768px) {
/* width */
::-webkit-scrollbar {
width: 8px;
@ -35,12 +33,3 @@
.rc-virtual-list-scrollbar-thumb:active {
background: var(--colorBgScrollBarActive) !important;
}
}
// the custom style for mobile
@media (max-width: 767px) {
// ensure smooth scrolling on iOS devices
.smooth-scroll {
-webkit-overflow-scrolling: touch;
}
}

View File

@ -12,7 +12,13 @@ import { createStyles } from '@nocobase/client';
export const useStyles = createStyles(({ token, css }) => {
return {
nbMobile: css`
-webkit-overflow-scrolling: touch;
display: initial;
& ::-webkit-scrollbar {
display: none;
}
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > span:last-child {
display: none !important;
}