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/components/SkNoteSimple.vue | |
| 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/components/SkNoteSimple.vue')
| -rw-r--r-- | packages/frontend/src/components/SkNoteSimple.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/SkNoteSimple.vue b/packages/frontend/src/components/SkNoteSimple.vue index 533aa60961..b31e337a99 100644 --- a/packages/frontend/src/components/SkNoteSimple.vue +++ b/packages/frontend/src/components/SkNoteSimple.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only <MkNoteHeader :class="$style.header" :classic="true" :note="note" :mini="true"/> <div> <p v-if="note.cw != null" :class="$style.cw"> - <Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/> + <Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :isBlock="true" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/> <MkCwButton v-model="showContent" :text="note.text" :files="note.files" :poll="note.poll" @click.stop/> </p> <div v-show="note.cw == null || showContent"> |