Skip to content

Commit 45aa748

Browse files
committed
fix(settings): clear NcAppNavigation toggle overhang
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent e01a54c commit 45aa748

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

apps/settings/src/views/SettingsContentWrapper.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<template>
77
<NcAppContent>
8-
<div ref="contentMain" />
8+
<div ref="contentMain" class="settings-content" />
99
</NcAppContent>
1010
</template>
1111

@@ -20,3 +20,14 @@ onMounted(() => {
2020
realElement.parentNode!.removeChild(realElement)
2121
})
2222
</script>
23+
24+
<style scoped>
25+
/* The NcAppNavigationToggle is absolutely positioned in the top inline-start
26+
corner of the content. Reserve the standard toggle clearance
27+
(--app-navigation-padding above + --default-clickable-area + matching padding
28+
below) so the first section's heading clears it. Sections already contribute
29+
~7 grid units of leading space, so subtract that to avoid a large empty band. */
30+
.settings-content {
31+
padding-block-start: calc(2 * var(--app-navigation-padding) + var(--default-clickable-area) - var(--default-grid-baseline) * 7);
32+
}
33+
</style>

0 commit comments

Comments
 (0)