Browse Source

Merge pull request #2728 from nocodb/fix/sidebar-collapse

pull/2735/head
Braks 2 years ago committed by GitHub
parent
commit
f92fbaadc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui-v2/app.vue
  2. 2
      packages/nc-gui-v2/pages/index/index.vue

3
packages/nc-gui-v2/app.vue

@ -16,7 +16,7 @@ const signOut = () => {
const toggleSidebar = useToggle($state.sidebarOpen) const toggleSidebar = useToggle($state.sidebarOpen)
const sidebarOpen = computed({ const sidebarOpen = computed({
get: () => $state.sidebarOpen.value ?? true, get: () => !($state.sidebarOpen.value ?? true),
set: (val) => toggleSidebar(val), set: (val) => toggleSidebar(val),
}) })
</script> </script>
@ -88,7 +88,6 @@ const sidebarOpen = computed({
<a-layout-sider <a-layout-sider
v-model:collapsed="sidebarOpen" v-model:collapsed="sidebarOpen"
width="300" width="300"
breakpoint="md"
collapsed-width="0" collapsed-width="0"
class="bg-white dark:!bg-gray-800 border-r-1 border-gray-200 dark:!border-gray-600 h-full" class="bg-white dark:!bg-gray-800 border-r-1 border-gray-200 dark:!border-gray-600 h-full"
:trigger="null" :trigger="null"

2
packages/nc-gui-v2/pages/index/index.vue

@ -34,7 +34,7 @@ const navDrawerOptions = [
const route = useRoute() const route = useRoute()
const { $api, $state } = useNuxtApp() const { $api } = useNuxtApp()
const toast = useToast() const toast = useToast()
const response = await $api.project.list({}) const response = await $api.project.list({})

Loading…
Cancel
Save