diff --git a/dashboard/assets/scss/main.scss b/dashboard/assets/scss/main.scss index 9cafe9c..c2814d2 100644 --- a/dashboard/assets/scss/main.scss +++ b/dashboard/assets/scss/main.scss @@ -59,6 +59,15 @@ } +.hide-scrollbars { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + &::-webkit-scrollbar { + display: none; /* Chrome, Safari and Opera */ + } +} + + .card-shadow { box-shadow: 0 0 18px #00000033; diff --git a/dashboard/components/CVerticalNavigation.vue b/dashboard/components/CVerticalNavigation.vue index fdf929d..a6d33b4 100644 --- a/dashboard/components/CVerticalNavigation.vue +++ b/dashboard/components/CVerticalNavigation.vue @@ -27,6 +27,23 @@ const props = defineProps(); const { isAdmin } = useUserRoles(); + +let resizeHandler: any; + +onMounted(() => { + resizeHandler = () => { + isMenuTooLarge.value = innerHeight < 720; + } + addEventListener('resize', resizeHandler); +}) + +onUnmounted(() => { + if (resizeHandler) removeEventListener('resize', resizeHandler); +}) + +const isMenuTooLarge = ref(false); + +