Browse Source

refactor(gui-v2): always show toggle when sidebar is collapsed

pull/3159/head
braks 2 years ago
parent
commit
3474ccff30
  1. 2
      packages/nc-gui-v2/components/smartsheet/sidebar/index.vue
  2. 2
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui-v2/components/smartsheet/sidebar/index.vue

@ -92,7 +92,7 @@ function onCreate(view: GridType | FormType | KanbanType | GalleryType) {
<Transition name="layout">
<div
v-show="isHovered"
v-show="sidebarCollapsed || isHovered"
class="group color-transition cursor-pointer hover:ring active:ring-pink-500 z-1 flex items-center p-[1px] absolute top-1/2 left-[-1rem] shadow bg-gray-100 rounded-full"
>
<MaterialSymbolsChevronRightRounded

2
packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

@ -240,7 +240,7 @@ const isHovered = useElementHover(sidebar)
<Transition name="layout">
<div
v-show="isHovered"
v-show="!isOpen || isHovered"
class="group color-transition cursor-pointer hover:ring active:ring-pink-500 z-1 flex items-center absolute top-1/2 right-[-0.75rem] shadow bg-gray-100 rounded-full"
>
<MaterialSymbolsChevronLeftRounded

Loading…
Cancel
Save