Browse Source

Merge pull request #6653 from nocodb/nc-fix/sidebar-collapse-bug-fix

Sidebar collapse bug fix
pull/6655/head
Muhammed Mustafa 1 year ago committed by GitHub
parent
commit
683adc3120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/assets/style.scss
  2. 2
      packages/nc-gui/store/sidebar.ts

2
packages/nc-gui/assets/style.scss

@ -603,7 +603,7 @@ input[type='number'] {
}
.nc-sidebar-node {
@apply !xs:(min-h-12 max-h-12 hover:bg-gray-50 ml-1.5);
@apply !xs:(min-h-12 max-h-12 hover:bg-gray-50 ml-1.5 w-[calc(100%-8px)]);
.nc-emoji {
@apply xs:(text-lg);

2
packages/nc-gui/store/sidebar.ts

@ -12,7 +12,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
const _isLeftSidebarOpen = ref(!isViewPortMobile())
const isLeftSidebarOpen = computed({
get() {
return (isMobileMode && !tablesStore.activeTableId) || _isLeftSidebarOpen.value
return (isMobileMode.value && !tablesStore.activeTableId) || _isLeftSidebarOpen.value
},
set(value) {
_isLeftSidebarOpen.value = value

Loading…
Cancel
Save