mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: adjust the font size displayed on the phone to 14px (#6570)
* refactor(plugin-mobile): rename GlobalStyle to ResetScrollbar for clarity * fix: increase font size in InternalAdminLayout from 14 to 16 * fix: ensure button alignment in WorkbenchBlock styles
This commit is contained in:
parent
0ce61b6384
commit
51a2d17f13
@ -618,7 +618,7 @@ export const InternalAdminLayout = () => {
|
||||
paddingPageVertical: 8, // Vertical page padding
|
||||
marginBlock: 12, // Spacing between blocks
|
||||
borderRadiusBlock: 8, // Block border radius
|
||||
fontSize: 14, // Font size
|
||||
fontSize: 16, // Font size
|
||||
},
|
||||
algorithm: isDarkTheme ? [antdTheme.compactAlgorithm, antdTheme.darkAlgorithm] : antdTheme.compactAlgorithm, // Set mobile mode to always use compact algorithm
|
||||
};
|
||||
|
@ -122,6 +122,7 @@ const useStyles = createStyles(({ token, css }) => ({
|
||||
margin: -12px -32px;
|
||||
width: calc(100% + 64px);
|
||||
text-align: start;
|
||||
justify-content: start !important;
|
||||
color: ${token.colorText};
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import { ActionDrawerUsedInMobile, useToAdaptActionDrawerToMobile } from './adap
|
||||
import { useToAdaptFilterActionToMobile } from './adaptor-of-desktop/FilterAction';
|
||||
import { mobileComponents } from './pages/dynamic-page/MobilePage';
|
||||
|
||||
const GlobalStyle = createGlobalStyle`
|
||||
const ResetScrollbar = createGlobalStyle`
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
@ -49,7 +49,7 @@ const MobileAdapter: FC = (props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<GlobalStyle />
|
||||
<ResetScrollbar />
|
||||
<OpenModeProvider defaultOpenMode="page" isMobile={true} openModeToComponent={openModeToComponent}>
|
||||
<SchemaComponentOptions components={mobileComponents}>{props.children}</SchemaComponentOptions>
|
||||
</OpenModeProvider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user