fix: dont show collapse button in mobile view
This commit is contained in:
parent
9655cbe5b5
commit
4531dbd99f
@ -74,7 +74,7 @@
|
||||
</Section>
|
||||
</div>
|
||||
</div>
|
||||
<div class="m-2 flex flex-col gap-1">
|
||||
<div v-if="!isMobileView" class="m-2 flex flex-col gap-1">
|
||||
<SidebarLink
|
||||
:label="isSidebarCollapsed ? __('Expand') : __('Collapse')"
|
||||
:isCollapsed="isSidebarCollapsed"
|
||||
@ -116,6 +116,7 @@ import { notificationsStore } from '@/stores/notifications'
|
||||
import { FeatherIcon } from 'frappe-ui'
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import { computed, h } from 'vue'
|
||||
import { isMobileView } from '@/stores/settings'
|
||||
|
||||
const { getPinnedViews, getPublicViews } = viewsStore()
|
||||
const { toggle: toggleNotificationPanel } = notificationsStore()
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<div class="flex border-b pr-5">
|
||||
<div
|
||||
v-if="isMobileView"
|
||||
class="z-20 -mr-4 ml-2 flex items-center justify-center"
|
||||
>
|
||||
<div class="z-20 -mr-4 ml-2 flex items-center justify-center">
|
||||
<Button variant="ghosted" @click="sidebarOpened = !sidebarOpened">
|
||||
<FeatherIcon name="menu" class="size-4" />
|
||||
</Button>
|
||||
@ -17,11 +14,6 @@
|
||||
|
||||
<script setup>
|
||||
import CallUI from '@/components/CallUI.vue'
|
||||
import { useScreenSize } from '@/composables'
|
||||
import { Button, FeatherIcon } from 'frappe-ui'
|
||||
import { computed } from 'vue'
|
||||
import { mobileSidebarOpened as sidebarOpened } from '@/stores/settings'
|
||||
|
||||
const screenSize = useScreenSize()
|
||||
const isMobileView = computed(() => screenSize.width < 640)
|
||||
</script>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { createResource } from 'frappe-ui'
|
||||
import { ref } from 'vue'
|
||||
import { useScreenSize } from '@/composables'
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
export const whatsappEnabled = ref(false)
|
||||
createResource({
|
||||
@ -21,3 +22,6 @@ createResource({
|
||||
})
|
||||
|
||||
export const mobileSidebarOpened = ref(false)
|
||||
|
||||
const screenSize = useScreenSize()
|
||||
export const isMobileView = computed(() => screenSize.width < 768)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user