Browse Source

fix(gui-v2): show right navbar toggle option in form view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3318/head
Pranav C 2 years ago
parent
commit
33906f3074
  1. 3
      packages/nc-gui-v2/components/smartsheet/sidebar/index.vue
  2. 7
      packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue

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

@ -101,8 +101,7 @@ function onCreate(view: ViewType) {
>
<Toolbar
v-if="isOpen"
class="min-h-[var(--toolbar-height)] max-h-[var(--toolbar-height)]"
:class="{ 'flex items-center py-3 px-3 justify-between border-b-1': !isForm }"
class="min-h-[var(--toolbar-height)] max-h-[var(--toolbar-height)] flex items-center py-3 px-3 justify-between border-b-1"
/>
<div v-if="isOpen" class="flex-1 flex flex-col min-h-0">
<MenuTop @open-modal="openModal" @deleted="loadViews" @sorted="loadViews" />

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

@ -3,9 +3,6 @@ import ExportCache from './ExportCache.vue'
import DeleteCache from './DeleteCache.vue'
import DebugMeta from './DebugMeta.vue'
import ToggleDrawer from './ToggleDrawer.vue'
import { IsFormInj } from '#imports'
const isForm = inject(IsFormInj)
const debug = $ref(false)
@ -14,7 +11,6 @@ const clickCount = $ref(0)
<template>
<div
v-if="!isForm"
class="flex gap-2 justify-start"
@click="
() => {
@ -42,9 +38,6 @@ const clickCount = $ref(0)
<slot name="end" />
</div>
<div v-else>
<slot name="start" />
</div>
</template>
<style scoped>

Loading…
Cancel
Save