From 6b6483c9fc2efd23a8c26ce058cdbd53e44bd7c3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 29 Dec 2020 11:47:36 +0900 Subject: タイトルバー非表示オプション MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/ui/default.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/client/ui') 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 @@
-
-
+
+
@@ -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; -- cgit v1.2.3-freya