Also replace 'Show More' fade w/ mask in subnotes

This commit is contained in:
Freeplay 2023-01-15 14:34:35 -05:00
parent acf376e7b9
commit fbabfec24b
1 changed files with 5 additions and 2 deletions

View File

@ -65,7 +65,11 @@ const collapsed = $ref(props.note.cw == null && isLong);
position: relative; position: relative;
max-height: 9em; max-height: 9em;
overflow: hidden; overflow: hidden;
> .body {
max-height: 9em;
mask: linear-gradient(black calc(100% - 64px), transparent);
-webkit-mask: linear-gradient(black calc(100% - 64px), transparent);
}
> .fade { > .fade {
display: block; display: block;
position: absolute; position: absolute;
@ -73,7 +77,6 @@ const collapsed = $ref(props.note.cw == null && isLong);
left: 0; left: 0;
width: 100%; width: 100%;
height: 64px; height: 64px;
background: linear-gradient(0deg, var(--panel), var(--X15));
> span { > span {
display: inline-block; display: inline-block;