Browse Source

fix: Fixed ws menu styling issues

pull/6498/head
Muhammed Mustafa 1 year ago
parent
commit
b80d72b998
  1. 2
      packages/nc-gui/components/nc/MenuItem.vue
  2. 3
      packages/nc-gui/store/sidebar.ts

2
packages/nc-gui/components/nc/MenuItem.vue

@ -18,7 +18,7 @@
.nc-menu-item > .ant-dropdown-menu-title-content { .nc-menu-item > .ant-dropdown-menu-title-content {
// Not Icon // Not Icon
:not(.nc-icon):not(.material-symbols) { :not(.nc-icon):not(.material-symbols) {
line-height: 0.95; line-height: 1.5;
} }
@apply flex flex-row items-center; @apply flex flex-row items-center;

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

@ -10,6 +10,8 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
const leftSidebarWidthPercent = ref(isViewPortMobile() ? 0 : 20) const leftSidebarWidthPercent = ref(isViewPortMobile() ? 0 : 20)
const leftSidebarWidth = computed(() => (width.value * leftSidebarWidthPercent.value) / 100)
const leftSideBarSize = ref({ const leftSideBarSize = ref({
old: 20, old: 20,
current: leftSidebarWidthPercent.value, current: leftSidebarWidthPercent.value,
@ -36,6 +38,7 @@ export const useSidebarStore = defineStore('sidebarStore', () => {
leftSideBarSize, leftSideBarSize,
leftSidebarState, leftSidebarState,
rightSidebarState, rightSidebarState,
leftSidebarWidth,
} }
}) })

Loading…
Cancel
Save