Move v-if to parent

pull/5880/head
Cagatay Civici 2024-06-12 23:02:33 +03:00
parent 3b20ef5ea6
commit f63c4c7c3f
1 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@
<div :class="isSlimMenu ? 'w-12 flex flex-col items-center' : 'w-auto'">
<div class="mt-10 flex flex-col gap-2">
<div
v-if="false"
v-tooltip="isSlimMenu ? 'Expanded Mode' : null"
class="px-4 py-1 flex items-center gap-1 cursor-pointer text-base rounded-lg transition-all select-none text-muted-color hover:bg-emphasis"
:class="[
@ -92,7 +93,7 @@
}
]"
>
<a v-if="false" @click="toggleSlimMenu" class="cursor-pointer block p-0 m-0 leading-none">
<a @click="toggleSlimMenu" class="cursor-pointer block p-0 m-0 leading-none">
<i :class="isSlimMenu ? 'pi pi-window-maximize' : 'pi pi-window-minimize'"></i>
<span :class="isSlimMenu ? 'hidden' : 'font-medium leading-8'"></span>
<span :class="isSlimMenu ? 'hidden' : 'font-medium leading-none'"> Slim Mode</span>