From b3779875d0845cebc8cd0d8e937ce0979ba846f7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 9 Oct 2021 00:46:52 +0900 Subject: :art: --- src/client/ui/_common_/header.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/client/ui/_common_') diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue index 5405c43f8c..ca3d47dc76 100644 --- a/src/client/ui/_common_/header.vue +++ b/src/client/ui/_common_/header.vue @@ -82,10 +82,11 @@ export default defineComponent({ }, mounted() { - this.narrow = this.$el.offsetWidth < 500; + if (this.$el.parentElement == null) return; + this.narrow = this.$el.parentElement.offsetWidth < 500; new ResizeObserver((entries, observer) => { - this.narrow = this.$el.offsetWidth < 500; - }).observe(this.$el); + this.narrow = this.$el.parentElement.offsetWidth < 500; + }).observe(this.$el.parentElement); }, methods: { @@ -144,6 +145,7 @@ export default defineComponent({ .fdidabkb { --height: 60px; display: flex; + width: 100%; &.thin { --height: 50px; -- cgit v1.2.3-freya