Make font sizes responsive
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
|||||||
Direction,
|
Direction,
|
||||||
lighten,
|
lighten,
|
||||||
Palette as MuiPalette,
|
Palette as MuiPalette,
|
||||||
|
responsiveFontSizes,
|
||||||
Theme,
|
Theme,
|
||||||
} from '@mui/material/styles';
|
} from '@mui/material/styles';
|
||||||
|
|
||||||
@@ -75,9 +76,9 @@ export const createTheme = (dark?: boolean, direction: Direction = 'ltr') => {
|
|||||||
baseTheme,
|
baseTheme,
|
||||||
);
|
);
|
||||||
|
|
||||||
theme = suwayomiTheme;
|
theme = responsiveFontSizes(suwayomiTheme);
|
||||||
|
|
||||||
return suwayomiTheme;
|
return theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getOptionForDirection = <T>(ltrOption: T, rtlOption: T): T =>
|
export const getOptionForDirection = <T>(ltrOption: T, rtlOption: T): T =>
|
||||||
|
|||||||
Reference in New Issue
Block a user