diff --git a/src/components/multiview/MultiviewToolbar.vue b/src/components/multiview/MultiviewToolbar.vue index 3fb9609ce..3fa3c4b83 100644 --- a/src/components/multiview/MultiviewToolbar.vue +++ b/src/components/multiview/MultiviewToolbar.vue @@ -1,5 +1,10 @@ + + + {{ $t("views.multiview.autoHideToolbar") }} + + import copyToClipboard from "@/mixins/copyToClipboard"; -import { mdiLinkVariant, mdiClipboardPlusOutline } from "@mdi/js"; +import { mdiLinkVariant, mdiClipboardPlusOutline, mdiArrowCollapseUp } from "@mdi/js"; import { encodeLayout } from "@/utils/mv-utils"; import { mapState } from "vuex"; @@ -138,7 +158,9 @@ export default { return { mdiClipboardPlusOutline, mdiLinkVariant, + mdiArrowCollapseUp, shareDialog: false, + localAutoHide: false, }; }, computed: { @@ -165,6 +187,15 @@ export default { collapseButtons() { return this.buttons.filter((btn) => btn.collapse); }, + autoHideToolbar: { + get() { + return this.localAutoHide; + }, + set(value) { + this.localAutoHide = value; + this.$emit("update:autoHideToolbar", value); + }, + }, }, methods: { startCopyToClipboard(txt) { @@ -181,6 +212,16 @@ export default { toggleMainNav() { return this.$store.commit("setNavDrawer", !this.$store.state.navDrawer); }, + hideToolbar() { + if (this.localAutoHide) { + setTimeout(() => { + this.collapseToolbar = true; + }, 150); + } + }, + toggleAutoHideToolbar() { + this.autoHideToolbar = !this.autoHideToolbar; + }, }, }; diff --git a/src/locales/en/ui.yml b/src/locales/en/ui.yml index acde0cb32..c0d6ba017 100644 --- a/src/locales/en/ui.yml +++ b/src/locales/en/ui.yml @@ -454,6 +454,7 @@ views: Videos are synced based on the stream start time, and can desync due to mid stream technical issues or deleted portions. Use offsets to manually align videos + autoHideToolbar: Auto Hide Toolbar mugen: welcome: >- Welcome to MugenClips! Everyone on this page is seeing the same randomly diff --git a/src/views/MultiView.vue b/src/views/MultiView.vue index 56736e556..2de7f5bd5 100644 --- a/src/views/MultiView.vue +++ b/src/views/MultiView.vue @@ -4,45 +4,59 @@ :class="{ 'mobile-helpers': $store.state.isMobile }" class="d-flex flex-column multiview" > + +
- - - - + + + + + +