forked from FoundKeyGang/FoundKey
client: always forbid MFM overflow
Some MFM overlays UI components. This should remove any possibility that rendered MFM escapes a Note's body. Changelog: Changed
This commit is contained in:
parent
1125a623a7
commit
ecca5a164e
2 changed files with 2 additions and 1 deletions
|
@ -175,6 +175,7 @@ withDefaults(defineProps<{
|
|||
<style lang="scss" scoped>
|
||||
.havbbuyv {
|
||||
white-space: pre-wrap;
|
||||
overflow: hidden;
|
||||
|
||||
&.nowrap {
|
||||
white-space: pre;
|
||||
|
|
|
@ -334,6 +334,6 @@ export default defineComponent({
|
|||
}).flat();
|
||||
|
||||
// Parse ast to DOM
|
||||
return h('span', genEl(ast));
|
||||
return h('div', genEl(ast));
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue