forked from glitch-soc/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bigger status previews after grouped notifs update
- Loading branch information
1 parent
d37648f
commit e1c717c
Showing
1 changed file
with
22 additions
and
17 deletions.
There are no files selected for viewing
39 changes: 22 additions & 17 deletions
39
app/javascript/flavours/glitch/styles/neuromatchstodon/bigger_collapsed_statuses.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
.status { | ||
$status-collapsed-height: 10em; | ||
$notification-collapsed-height: 6em; | ||
|
||
.status__wrapper { | ||
&.collapsed { | ||
.status__content { | ||
height: unset; | ||
max-height: 6em; | ||
padding-top: unset; | ||
.status { | ||
&__content { | ||
height: unset; | ||
max-height: $status-collapsed-height; | ||
padding-top: unset; | ||
mask-image: linear-gradient(#000 80%, transparent); | ||
|
||
&::after { | ||
top: unset; | ||
height: 40%; | ||
} | ||
|
||
&::after { | ||
top: unset; | ||
height: 40%; | ||
// "See more" button | ||
&__spoiler-link { | ||
background: $action-button-color; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&--in-thread { | ||
&.collapsed { | ||
& > button { | ||
&--in-thread > button { | ||
margin-inline-start: 46px + 10px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Fix background color after upstream moved how the | ||
// normal button is placed in the DOM | ||
.status.collapsed .status__content__spoiler-link { | ||
background: $action-button-color; | ||
.notification-ungrouped .status__wrapper.collapsed .status__content { | ||
max-height: $notification-collapsed-height; | ||
} |