Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: border radius of dialogs on mobile

Ilian Sapundshiev1ea1f5851870
diff --git a/src/renderer/utils/Themes.ts b/src/renderer/utils/Themes.ts
index 051e888c9..83b85853a 100644
--- a/src/renderer/utils/Themes.ts
+++ b/src/renderer/utils/Themes.ts
@@ -48,9 +48,11 @@ export const createTSTheme = (themeName: string, isDark: boolean = false) => {
MuiDialog: {
styleOverrides: {
paper: ({ theme }) => ({
- borderRadius: '15px',
+ borderRadius: AppConfig.defaultCSSRadius,
+ // On small screens dialogs render fullScreen (edge-to-edge); keep
+ // the corners rounded against the backdrop instead of squaring them.
[theme.breakpoints.down('md')]: {
- borderRadius: '0px',
+ borderRadius: AppConfig.defaultCSSRadius,
},
}),
},