text-wrap: pretty attempt again

pull/286/head
Lim Chee Aun 2023-11-02 13:00:07 +08:00
rodzic 48b505b382
commit fd7caca039
5 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -254,6 +254,7 @@
.account-container .note {
font-size: 95%;
line-height: 1.4;
text-wrap: pretty;
}
.account-container .note:not(:has(p)):not(:empty) {
/* Some notes don't have <p> tags, so we need to add some padding */

Wyświetl plik

@ -57,6 +57,7 @@ export default function MediaAltModal({ alt, lang, onClose }) {
<p
style={{
whiteSpace: 'pre-wrap',
textWrap: 'pretty',
}}
>
{alt}

Wyświetl plik

@ -603,6 +603,7 @@
margin-block: min(0.75em, 12px);
white-space: pre-wrap;
tab-size: 2;
text-wrap: pretty;
}
.status .content p:first-child {
margin-block-start: 0;
@ -726,6 +727,7 @@
white-space: pre-line;
flex-basis: 15em;
flex-grow: 1;
text-wrap: pretty;
}
}
@ -1203,6 +1205,7 @@ a:focus-visible .card img {
box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
text-wrap: balance;
}
.card .meta {
font-size: smaller;

Wyświetl plik

@ -83,6 +83,7 @@
.status-translation-block .translated-block output {
display: block;
margin-top: 0.75em;
text-wrap: pretty;
}
.status-translation-block
.translated-block

Wyświetl plik

@ -162,9 +162,10 @@
flex-grow: 1;
min-width: 0;
}
.notification-content p:first-child {
.notification-content > p:first-child {
margin-top: 0;
margin-bottom: 8px;
text-wrap: pretty;
}
.notification-group-statuses {
@ -407,6 +408,7 @@
margin-block: min(0.75em, 12px);
white-space: pre-wrap;
tab-size: 2;
text-wrap: pretty;
}
.announcements .announcement-reactions:not(:hidden) {
display: flex;