mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-08 17:16:25 +01:00
text-wrap: pretty attempt again
This commit is contained in:
parent
48b505b382
commit
fd7caca039
5 changed files with 9 additions and 1 deletions
|
@ -254,6 +254,7 @@
|
||||||
.account-container .note {
|
.account-container .note {
|
||||||
font-size: 95%;
|
font-size: 95%;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
.account-container .note:not(:has(p)):not(:empty) {
|
.account-container .note:not(:has(p)):not(:empty) {
|
||||||
/* Some notes don't have <p> tags, so we need to add some padding */
|
/* Some notes don't have <p> tags, so we need to add some padding */
|
||||||
|
|
|
@ -57,6 +57,7 @@ export default function MediaAltModal({ alt, lang, onClose }) {
|
||||||
<p
|
<p
|
||||||
style={{
|
style={{
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
|
textWrap: 'pretty',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{alt}
|
{alt}
|
||||||
|
|
|
@ -603,6 +603,7 @@
|
||||||
margin-block: min(0.75em, 12px);
|
margin-block: min(0.75em, 12px);
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
tab-size: 2;
|
tab-size: 2;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
.status .content p:first-child {
|
.status .content p:first-child {
|
||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
|
@ -726,6 +727,7 @@
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
flex-basis: 15em;
|
flex-basis: 15em;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1203,6 +1205,7 @@ a:focus-visible .card img {
|
||||||
box-orient: vertical;
|
box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
line-clamp: 2;
|
line-clamp: 2;
|
||||||
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
.card .meta {
|
.card .meta {
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
.status-translation-block .translated-block output {
|
.status-translation-block .translated-block output {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 0.75em;
|
margin-top: 0.75em;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
.status-translation-block
|
.status-translation-block
|
||||||
.translated-block
|
.translated-block
|
||||||
|
|
|
@ -162,9 +162,10 @@
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.notification-content p:first-child {
|
.notification-content > p:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-group-statuses {
|
.notification-group-statuses {
|
||||||
|
@ -407,6 +408,7 @@
|
||||||
margin-block: min(0.75em, 12px);
|
margin-block: min(0.75em, 12px);
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
tab-size: 2;
|
tab-size: 2;
|
||||||
|
text-wrap: pretty;
|
||||||
}
|
}
|
||||||
.announcements .announcement-reactions:not(:hidden) {
|
.announcements .announcement-reactions:not(:hidden) {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in a new issue