diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-06-07 11:01:49 +0100 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-06-07 11:18:25 +0100 |
| commit | 43c0ffe7f855c5544b6bc9d1b23888e2d0f9f991 (patch) | |
| tree | fb46daead9104e6ea13d49b3ec297868c439bd18 /packages/frontend/src/style.scss | |
| parent | merge: use the current resolver for quotes - #524 (!536) (diff) | |
| download | sharkey-43c0ffe7f855c5544b6bc9d1b23888e2d0f9f991.tar.gz sharkey-43c0ffe7f855c5544b6bc9d1b23888e2d0f9f991.tar.bz2 sharkey-43c0ffe7f855c5544b6bc9d1b23888e2d0f9f991.zip | |
better block display for `<bdi>` elements
We use MfM in all sorts of places, and only some of them are actual
blocks. We can now tell the `Mfm` component to make the top-level
`<bdi>` a block when we need to (mostly note bodies, user
descriptions, announcements) and leave it inline in all other places.
This should still rendener inline rtl content embedded in ltr text in
a sensible way, while providing right-alignment for fully rtl blocks.
Diffstat (limited to 'packages/frontend/src/style.scss')
| -rw-r--r-- | packages/frontend/src/style.scss | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/style.scss b/packages/frontend/src/style.scss index 4e3a77f158..997e2051cc 100644 --- a/packages/frontend/src/style.scss +++ b/packages/frontend/src/style.scss @@ -557,7 +557,7 @@ rt { // MFM ----------------------------- -div > bdi, p > bdi { display: block } +bdi.block { display: block } ._mfm_blur_ { filter: blur(6px); @@ -708,4 +708,4 @@ div > bdi, p > bdi { display: block } 100% { opacity: 1; } -}
\ No newline at end of file +} |