mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
746 B
20 lines
746 B
2 years ago
|
<script setup lang="ts">
|
||
2 years ago
|
import MdiUnfoldMoreVertical from '~icons/mdi/unfold-more-vertical'
|
||
|
import MdiUnfoldLessVertical from '~icons/mdi/unfold-less-vertical'
|
||
2 years ago
|
import { inject, ref } from '#imports'
|
||
|
import { RightSidebarInj } from '~/context'
|
||
2 years ago
|
|
||
2 years ago
|
const sidebarOpen = inject(RightSidebarInj, ref(false))
|
||
2 years ago
|
</script>
|
||
|
|
||
|
<template>
|
||
2 years ago
|
<a-tooltip placement="left">
|
||
2 years ago
|
<template #title> {{ $t('tooltip.toggleNavDraw') }} </template>
|
||
2 years ago
|
|
||
2 years ago
|
<div class="nc-sidebar-right-item hover:after:bg-pink-500 group">
|
||
2 years ago
|
<MdiUnfoldLessVertical v-if="sidebarOpen" class="group-hover:(!text-white)" @click="sidebarOpen = false" />
|
||
|
<MdiUnfoldMoreVertical v-else class="group-hover:(!text-white)" @click="sidebarOpen = true" />
|
||
2 years ago
|
</div>
|
||
2 years ago
|
</a-tooltip>
|
||
2 years ago
|
</template>
|