-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for grouped and ungrouped layout in notifications
- Loading branch information
1 parent
ba8033b
commit e9dcb38
Showing
4 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
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
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,5 +1,5 @@ | ||
/* Mastodon Bird UI by @[email protected] | ||
2.0.0rc41 */ | ||
2.0.0rc42 */ | ||
|
||
/* CSS variables */ | ||
:root { | ||
|
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,5 +1,5 @@ | ||
/* Mastodon Bird UI by @[email protected] | ||
2.0.0rc41 */ | ||
2.0.0rc42 */ | ||
|
||
/* CSS variables */ | ||
:root { | ||
|
@@ -1554,6 +1554,17 @@ body.embed .detailed-status__display-avatar > img, | |
padding-left: var(--gap-default); | ||
} | ||
|
||
/* Fix spacing under quoted post in grouped notification */ | ||
.notification-group .notification-group__embedded-status__content { | ||
max-height: 100%; | ||
} | ||
|
||
/* We don't need to show our own account when we know our own account is being mentioned */ | ||
.notification-ungrouped.notification-ungrouped--mention .notification-ungrouped__header, | ||
.notification-group .notification-group__embedded-status__account { | ||
display: none; | ||
} | ||
|
||
.layout-single-column .notification-ungrouped .notification-ungrouped__header { | ||
padding-left: calc(24px + var(--gap-default)); | ||
} | ||
|
@@ -1865,10 +1876,14 @@ body.embed .detailed-status__meta .detailed-status__link .fa-retweet, | |
} | ||
|
||
/* Notifications */ | ||
.layout-single-column .notification-group, | ||
.layout-single-column .notification__message { | ||
display: grid; | ||
gap: var(--gap-default); | ||
grid-template-columns: minmax(0, var(--size-avatar)) minmax(0, 1fr); | ||
} | ||
|
||
.layout-single-column .notification__message { | ||
height: calc(var(--gap-default) * 2); | ||
} | ||
|
||
|
@@ -2273,6 +2288,15 @@ body.embed .detailed-status__meta .detailed-status__link .fa-retweet, | |
width: 27px; | ||
} | ||
|
||
.layout-single-column .notification-group .notification-group__icon .icon { | ||
margin-right: 0; | ||
} | ||
|
||
.layout-single-column .notification-group .notification-group__icon { | ||
justify-self: end; | ||
margin-right: 4px; | ||
} | ||
|
||
.layout-single-column .notification-group .notification-group__icon .icon-repeat, | ||
.layout-single-column .notification .notification__message .icon.icon-retweet { | ||
color: var(--color-green); | ||
|
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