From b2bc51a4eea66b4702526b28906a1a5d0c6b07e5 Mon Sep 17 00:00:00 2001 From: Free Date: Sun, 19 Mar 2023 07:13:02 +0000 Subject: [PATCH] note-improvements (#9721) boop Co-authored-by: Freeplay Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9721 Co-authored-by: Free Co-committed-by: Free --- packages/client/src/components/MkNoteSub.vue | 26 ++++++++++++++----- .../src/components/MkSubNoteContent.vue | 13 +++++----- packages/client/src/pages/note.vue | 12 ++------- 3 files changed, 28 insertions(+), 23 deletions(-) diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 48e9866d8..7fc7fc8dd 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -10,13 +10,17 @@

- - + + + + + +

- +
@@ -112,16 +116,24 @@ const replies: misskey.entities.Note[] = props.conversation?.filter(item => item } > .body { + :deep(.reply-icon) { + display: inline-block; + border-radius: 6px; + padding: .2em .2em; + margin-right: .2em; + color: var(--accent); + transition: background .2s; + &:hover, &:focus { + background: var(--buttonHoverBg); + } + } > .cw { cursor: default; display: block; margin: 0; padding: 0; overflow-wrap: break-word; - > .reply-icon { - margin-right: 6px; - color: var(--accent); - } + > .text { margin-right: 8px; } diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 87e927df0..3193834c9 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -3,8 +3,12 @@
({{ i18n.ts.deleted }}) {{ i18n.ts.quoteAttached }}: ... @@ -45,6 +49,7 @@ import { i18n } from '@/i18n'; const props = defineProps<{ note: misskey.entities.Note; parentId?; + conversation?; detailed?: boolean; }>(); @@ -64,10 +69,6 @@ const urls = props.note.text ? extractUrlFromMfm(mfm.parse(props.note.text)) : n overflow-wrap: break-word; > .body { - > .reply-icon { - margin-right: 6px; - color: var(--accent); - } > .rp { margin-left: 4px; diff --git a/packages/client/src/pages/note.vue b/packages/client/src/pages/note.vue index 1b0380cc2..1baf1894f 100644 --- a/packages/client/src/pages/note.vue +++ b/packages/client/src/pages/note.vue @@ -1,8 +1,8 @@