Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3662 from nocodb/feat/full-screen
Feat: fullscreen option to toggle nav drawers
- Loading branch information
Showing
7 changed files
with
877 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script setup lang="ts"> | ||
import { useSidebar } from '#imports' | ||
const rightSidebar = useSidebar('nc-right-sidebar') | ||
const leftSidebar = useSidebar('nc-left-sidebar') | ||
const isSidebarsOpen = computed({ | ||
get: () => rightSidebar.isOpen.value || leftSidebar.isOpen.value, | ||
set: (value) => { | ||
rightSidebar.toggle(value) | ||
leftSidebar.toggle(value) | ||
}, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<a-tooltip> | ||
<!-- todo: i18n --> | ||
<template #title> {{ isSidebarsOpen ? 'Full width': 'Exit full width' }}</template> | ||
<div | ||
v-e="['c:toolbar:fullscreen']" | ||
class="nc-fullscreen-btn cursor-pointer flex align-center self-center px-2 py-2 mr-2" | ||
@click="isSidebarsOpen = !isSidebarsOpen" | ||
> | ||
<IcTwotoneWidthFull v-if="isSidebarsOpen" class="text-gray-300" /> | ||
<IcTwotoneWidthNormal v-else class="text-gray-300" /> | ||
</div> | ||
</a-tooltip> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.