From fbabfec24baa47b2cbc1ea129b5faa01dac5b9b4 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 15 Jan 2023 14:34:35 -0500 Subject: [PATCH] Also replace 'Show More' fade w/ mask in subnotes --- packages/client/src/components/MkSubNoteContent.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index decca7d35d..aab7360539 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -65,7 +65,11 @@ const collapsed = $ref(props.note.cw == null && isLong); position: relative; max-height: 9em; overflow: hidden; - + > .body { + max-height: 9em; + mask: linear-gradient(black calc(100% - 64px), transparent); + -webkit-mask: linear-gradient(black calc(100% - 64px), transparent); + } > .fade { display: block; position: absolute; @@ -73,7 +77,6 @@ const collapsed = $ref(props.note.cw == null && isLong); left: 0; width: 100%; height: 64px; - background: linear-gradient(0deg, var(--panel), var(--X15)); > span { display: inline-block;