feat: tooltips on primary navigation in zenmode
This commit is contained in:
@@ -15,6 +15,12 @@
|
|||||||
<SmartIcon :name="navigation.svg" class="svg-icons" />
|
<SmartIcon :name="navigation.svg" class="svg-icons" />
|
||||||
</div>
|
</div>
|
||||||
<span v-if="LEFT_SIDEBAR">{{ navigation.title }}</span>
|
<span v-if="LEFT_SIDEBAR">{{ navigation.title }}</span>
|
||||||
|
<tippy
|
||||||
|
v-if="!LEFT_SIDEBAR"
|
||||||
|
:placement="windowInnerWidth.x.value >= 768 ? 'right' : 'bottom'"
|
||||||
|
theme="tooltip"
|
||||||
|
:content="navigation.title"
|
||||||
|
/>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
@@ -22,11 +28,13 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "@nuxtjs/composition-api"
|
import { defineComponent } from "@nuxtjs/composition-api"
|
||||||
|
import useWindowSize from "~/helpers/utils/useWindowSize"
|
||||||
import { useSetting } from "~/newstore/settings"
|
import { useSetting } from "~/newstore/settings"
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
|
windowInnerWidth: useWindowSize(),
|
||||||
LEFT_SIDEBAR: useSetting("LEFT_SIDEBAR"),
|
LEFT_SIDEBAR: useSetting("LEFT_SIDEBAR"),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user