diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-11-13 17:50:49 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-11-13 17:50:49 +0100 |
commit | 3916be738b1efb9a5a1a94359730f5c443907a4c (patch) | |
tree | fcaf3f6f4f3d58e3a3d7662cc175c4d671c3b0b7 /src/components/Quote.vue | |
parent | 3c2a274b198bd95ec33c1027438489c8612ba9f6 (diff) |
Adjustments for highlight message
Added rounded borders.
Whenever the hash changes as a result of clicking a link, the message is
now also highlighted. However, it seems the browser already teleports
there so scrollIntoView does nothing. This will need further research.
Fixed Quote logic to actually receive a parent-id from NewMessageForm,
which removes the console message about the missing required property.
Tweaked scroll into view to focus on the top instead of center.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/components/Quote.vue')
-rw-r--r-- | src/components/Quote.vue | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/Quote.vue b/src/components/Quote.vue index 01cdecf76..d4f8abcfc 100644 --- a/src/components/Quote.vue +++ b/src/components/Quote.vue @@ -214,10 +214,7 @@ export default { }, handleQuoteClick() { - // FIXME: unify quote attributes for the two use cases - // - "reply in message list" (this.parentId) and - // - "reply quote in new message" (this.id) - EventBus.$emit('focusMessage', this.parentId || this.id) + EventBus.$emit('focusMessage', this.parentId) }, }, } |