diff --git a/src/assets/variables.scss b/src/assets/variables.scss index 1050b41dd3..54e40248ea 100644 --- a/src/assets/variables.scss +++ b/src/assets/variables.scss @@ -55,6 +55,7 @@ $navigation-width: 300px; // mobile breakpoint $breakpoint-mobile: 1024px; +$breakpoint-small-mobile: math.div($breakpoint-mobile, 2); // navigation spacing $app-navigation-settings-margin: 3px; diff --git a/src/components/NcAppSidebar/NcAppSidebar.vue b/src/components/NcAppSidebar/NcAppSidebar.vue index 488506991d..8eaa4215f6 100644 --- a/src/components/NcAppSidebar/NcAppSidebar.vue +++ b/src/components/NcAppSidebar/NcAppSidebar.vue @@ -1069,7 +1069,7 @@ $top-buttons-spacing: 6px; } // Make the sidebar full-width on small screens -@media only screen and (max-width: 768px) { +@media only screen and (max-width: $breakpoint-small-mobile) { .app-sidebar { width: 100vw; max-width: 100vw; diff --git a/src/components/NcDialog/NcDialog.vue b/src/components/NcDialog/NcDialog.vue index f3bccaa0c2..6636a12e54 100644 --- a/src/components/NcDialog/NcDialog.vue +++ b/src/components/NcDialog/NcDialog.vue @@ -355,7 +355,7 @@ export default defineComponent({