mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 17:16:26 +01:00
bidi fixes
This commit is contained in:
parent
b22ea39e6c
commit
e8cc26fe2b
2 changed files with 11 additions and 8 deletions
|
@ -535,6 +535,13 @@
|
|||
color: var(--text-color);
|
||||
text-decoration-color: var(--link-color);
|
||||
}
|
||||
.status .content :is(.h-card, .mention) {
|
||||
unicode-bidi: isolate;
|
||||
}
|
||||
.status .spoiler-content > *,
|
||||
.status .content .inner-content > * {
|
||||
unicode-bidi: plaintext;
|
||||
}
|
||||
.status .content p {
|
||||
/* 12px = 75% of 16px */
|
||||
margin-block: min(0.75em, 12px);
|
||||
|
|
|
@ -1045,7 +1045,7 @@ function Status({
|
|||
{!!spoilerText && (
|
||||
<>
|
||||
<div
|
||||
class="content"
|
||||
class="content spoiler-content"
|
||||
lang={language}
|
||||
dir="auto"
|
||||
ref={spoilerContentRef}
|
||||
|
@ -1073,14 +1073,10 @@ function Status({
|
|||
</button>
|
||||
</>
|
||||
)}
|
||||
<div
|
||||
class="content"
|
||||
lang={language}
|
||||
dir="auto"
|
||||
ref={contentRef}
|
||||
data-read-more={readMoreText}
|
||||
>
|
||||
<div class="content" ref={contentRef} data-read-more={readMoreText}>
|
||||
<div
|
||||
lang={language}
|
||||
dir="auto"
|
||||
class="inner-content"
|
||||
onClick={handleContentLinks({ mentions, instance, previewMode })}
|
||||
dangerouslySetInnerHTML={{
|
||||
|
|
Loading…
Reference in a new issue