diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-29 11:47:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-29 11:47:36 +0900 |
| commit | 6b6483c9fc2efd23a8c26ce058cdbd53e44bd7c3 (patch) | |
| tree | 2ad0b0891c2afd8a01ee76c74f8b94d617a1248f /src/client/ui | |
| parent | Improve timeline page (diff) | |
| download | misskey-6b6483c9fc2efd23a8c26ce058cdbd53e44bd7c3.tar.gz misskey-6b6483c9fc2efd23a8c26ce058cdbd53e44bd7c3.tar.bz2 misskey-6b6483c9fc2efd23a8c26ce058cdbd53e44bd7c3.zip | |
タイトルバー非表示オプション
Diffstat (limited to 'src/client/ui')
| -rw-r--r-- | src/client/ui/default.vue | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue index 1a3c336f39..796e0d54f5 100644 --- a/src/client/ui/default.vue +++ b/src/client/ui/default.vue @@ -2,8 +2,8 @@ <div class="mk-app" :class="{ wallpaper }"> <XSidebar ref="nav" class="sidebar"/> - <div class="contents" ref="contents"> - <header class="header" ref="header" @contextmenu.prevent.stop="onContextmenu" @click="onHeaderClick"> + <div class="contents" ref="contents" :class="{ withHeader: $store.state.titlebar }" @contextmenu.prevent.stop="onContextmenu"> + <header v-if="$store.state.titlebar" class="header" ref="header" @click="onHeaderClick"> <XHeader :info="pageInfo"/> </header> <main ref="main"> @@ -162,7 +162,7 @@ export default defineComponent({ this.navHidden = navWidth === 0; if (this.$refs.contents == null) return; const width = this.$refs.contents.offsetWidth; - this.$refs.header.style.width = `${width}px`; + if (this.$refs.header) this.$refs.header.style.width = `${width}px`; }, showNav() { @@ -256,7 +256,10 @@ export default defineComponent({ > .contents { width: 100%; min-width: 0; - padding-top: $header-height; + + &.withHeader { + padding-top: $header-height; + } > .header { position: fixed; |