From 733c9a8c009be4c05da07d933e5ffffc80248401 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 20 Nov 2023 22:55:37 +0100 Subject: [PATCH] fix: Show Less button overlapping text Fixes transfem-org/Sharkey#161 --- packages/frontend/src/components/MkNote.vue | 2 +- packages/frontend/src/components/MkSubNoteContent.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 89201063d..f4f31f6a5 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -974,7 +974,7 @@ function emitUpdReaction(emoji: string, delta: number) { width: 100%; margin-top: 14px; position: sticky; - bottom: calc(var(--stickyBottom, 0px) + 14px); + bottom: calc(var(--stickyBottom, 0px) - 100px); } .showLessLabel { diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue index e1b57536f..aec657536 100644 --- a/packages/frontend/src/components/MkSubNoteContent.vue +++ b/packages/frontend/src/components/MkSubNoteContent.vue @@ -145,7 +145,7 @@ const collapsed = $ref(isLong); width: 100%; margin-top: 14px; position: sticky; - bottom: calc(var(--stickyBottom, 0px) + 14px); + bottom: calc(var(--stickyBottom, 0px) - 100px); } .playMFMButton {