Support for new content warnings presented in v4.3.0-beta.1 (thanks @shleeable!), Fixes #128
This commit is contained in:
parent
c107b88796
commit
f21e2948f7
@ -1,3 +1,8 @@
|
|||||||
|
### 2.0.0rc44: 2024-08-23
|
||||||
|
|
||||||
|
* Support for v4.3.0-beta.1+mementomods-2024-08-23
|
||||||
|
* Support for new content warnings presented in v4.3.0-beta.1 (thanks @shleeable!), Fixes #128
|
||||||
|
|
||||||
### 2.0.0rc43: 2024-07-28
|
### 2.0.0rc43: 2024-07-28
|
||||||
|
|
||||||
* Fix Create account button not clickable on mobile
|
* Fix Create account button not clickable on mobile
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Mastodon Bird UI by @rolle@mementomori.social
|
/* Mastodon Bird UI by @rolle@mementomori.social
|
||||||
2.0.0rc43 */
|
2.0.0rc44 */
|
||||||
|
|
||||||
/* CSS variables */
|
/* CSS variables */
|
||||||
:root {
|
:root {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Mastodon Bird UI by @rolle@mementomori.social
|
/* Mastodon Bird UI by @rolle@mementomori.social
|
||||||
2.0.0rc43 */
|
2.0.0rc44 */
|
||||||
|
|
||||||
/* CSS variables */
|
/* CSS variables */
|
||||||
:root {
|
:root {
|
||||||
@ -1019,8 +1019,8 @@ body.embed .status__content a,
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Filtered post */
|
/* Filtered post / Content warnings */
|
||||||
.layout-single-column .status__wrapper.status__wrapper--filtered {
|
body .status__wrapper.status__wrapper--filtered {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--color-focusable-toot);
|
background-color: var(--color-focusable-toot);
|
||||||
border: 1px solid var(--color-border);
|
border: 1px solid var(--color-border);
|
||||||
@ -1039,6 +1039,47 @@ body.embed .status__content a,
|
|||||||
width: calc(100% - calc(var(--gap-default) * 2));
|
width: calc(100% - calc(var(--gap-default) * 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body .content-warning {
|
||||||
|
background-color: var(--color-focusable-toot);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
color: var(--color-light-purple);
|
||||||
|
display: flex;
|
||||||
|
font-size: var(--font-size-mid);
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: left;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body .content-warning .link-button {
|
||||||
|
color: var(--color-fg);
|
||||||
|
font-size: var(--font-size-mid);
|
||||||
|
font-weight: var(--font-weight-semibold);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* New content warnings in 4.3.0.beta.1-mementomods-2024-08-23 */
|
||||||
|
body .status:not(.status--in-thread) .content-warning {
|
||||||
|
margin-bottom: var(--gap-default);
|
||||||
|
margin-left: calc(var(--size-avatar) + var(--gap-default));
|
||||||
|
margin-top: var(--gap-default);
|
||||||
|
}
|
||||||
|
|
||||||
|
body .content-warning p {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
max-width: 78%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: left;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
body .content-warning::after,
|
||||||
|
body .content-warning::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.layout-single-column .notification:has(.status__wrapper--filtered) .notification__message {
|
.layout-single-column .notification:has(.status__wrapper--filtered) .notification__message {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mastodon-bird-ui",
|
"name": "mastodon-bird-ui",
|
||||||
"version": "2.0.0rc43",
|
"version": "2.0.0rc44",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user