mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
chore(mobile): hide scrollbar (#5339)
This commit is contained in:
parent
6b07fc4352
commit
4130d1d180
@ -1,5 +1,3 @@
|
|||||||
// the custom style for desktop
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
/* width */
|
/* width */
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 8px;
|
width: 8px;
|
||||||
@ -35,12 +33,3 @@
|
|||||||
.rc-virtual-list-scrollbar-thumb:active {
|
.rc-virtual-list-scrollbar-thumb:active {
|
||||||
background: var(--colorBgScrollBarActive) !important;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,13 @@ import { createStyles } from '@nocobase/client';
|
|||||||
export const useStyles = createStyles(({ token, css }) => {
|
export const useStyles = createStyles(({ token, css }) => {
|
||||||
return {
|
return {
|
||||||
nbMobile: css`
|
nbMobile: css`
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
display: initial;
|
display: initial;
|
||||||
|
|
||||||
|
& ::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > span:last-child {
|
.ant-table-thead button[aria-label*='schema-initializer-TableV2-table:configureColumns'] > span:last-child {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user