From 9860489f88e04722202d0596e1a7304edb4cb82b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Feb 2021 21:02:59 +0900 Subject: [PATCH] Fix style --- src/client/components/notes.vue | 11 ++++++----- src/client/ui/chat/notes.vue | 11 ++++++----- src/client/ui/chat/timeline.vue | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/client/components/notes.vue b/src/client/components/notes.vue index bd6d5bb4f..ebb87622a 100644 --- a/src/client/components/notes.vue +++ b/src/client/components/notes.vue @@ -8,10 +8,10 @@
- +
@@ -19,10 +19,10 @@
- +
@@ -32,10 +32,11 @@ import { defineComponent } from 'vue'; import paging from '@/scripts/paging'; import XNote from './note.vue'; import XList from './date-separated-list.vue'; +import MkButton from '@/components/ui/button.vue'; export default defineComponent({ components: { - XNote, XList, + XNote, XList, MkButton, }, mixins: [ diff --git a/src/client/ui/chat/notes.vue b/src/client/ui/chat/notes.vue index 1fa2870ce..774b8e4aa 100644 --- a/src/client/ui/chat/notes.vue +++ b/src/client/ui/chat/notes.vue @@ -8,10 +8,10 @@
- +
@@ -19,10 +19,10 @@
- +
@@ -32,10 +32,11 @@ import { defineComponent } from 'vue'; import paging from '@/scripts/paging'; import XNote from './note.vue'; import XList from './date-separated-list.vue'; +import MkButton from '@/components/ui/button.vue'; export default defineComponent({ components: { - XNote, XList, + XNote, XList, MkButton, }, mixins: [ diff --git a/src/client/ui/chat/timeline.vue b/src/client/ui/chat/timeline.vue index 12cb7af7d..2a74584e6 100644 --- a/src/client/ui/chat/timeline.vue +++ b/src/client/ui/chat/timeline.vue @@ -221,9 +221,8 @@ export default defineComponent({ queueUpdated(q) { if (this.$refs.body.offsetWidth !== 0) { const rect = this.$refs.body.getBoundingClientRect(); - const scrollTop = getScrollPosition(this.$refs.body); this.width = this.$refs.body.offsetWidth; - this.top = rect.top + scrollTop; + this.top = rect.top; this.bottom = this.$refs.body.offsetHeight; } this.queue = q; @@ -264,6 +263,7 @@ export default defineComponent({ } .dbiokgaf.tl { + position: relative; padding: 16px 0; flex: 1; min-width: 0;