summaryrefslogtreecommitdiff
path: root/src/client/ui/_common_
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-09 00:46:52 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-10-09 00:46:52 +0900
commitb3779875d0845cebc8cd0d8e937ce0979ba846f7 (patch)
tree5e249ff9c8e13cc2da2e897d0c8ff36f4d58c550 /src/client/ui/_common_
parent:art: (diff)
downloadsharkey-b3779875d0845cebc8cd0d8e937ce0979ba846f7.tar.gz
sharkey-b3779875d0845cebc8cd0d8e937ce0979ba846f7.tar.bz2
sharkey-b3779875d0845cebc8cd0d8e937ce0979ba846f7.zip
:art:
Diffstat (limited to 'src/client/ui/_common_')
-rw-r--r--src/client/ui/_common_/header.vue8
1 files changed, 5 insertions, 3 deletions
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;