From 404c9d7068a3f95b0836fd0bad8656a846069596 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Thu, 16 May 2024 17:39:21 +0200 Subject: [PATCH] feat(NcAppSidebar): add CSS variables for toggle button offset Signed-off-by: Grigorii K. Shartsev --- src/components/NcAppSidebar/NcAppSidebar.vue | 56 ++++++++++++++------ 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/src/components/NcAppSidebar/NcAppSidebar.vue b/src/components/NcAppSidebar/NcAppSidebar.vue index d28fc0cf7d..6f49111c4d 100644 --- a/src/components/NcAppSidebar/NcAppSidebar.vue +++ b/src/components/NcAppSidebar/NcAppSidebar.vue @@ -376,18 +376,21 @@ A working alternative would be using an icon together with an `aria-label`: If the sidebar should be shown conditionally (e.g. using a button) and the users are expected to open and close the sidebar multiple times, then using `v-if` might result in bad performance. -So instead use the `open` property: +So instead use the `open` property. + +You can also use `--app-sidebar-offset` CSS variable to preserve space for the toggle button, for example, in top bar of NcAppContent. ```vue + ``` @@ -443,7 +456,7 @@ export default {