forked from FoundKeyGang/FoundKey
fixup! client: fix MFM overflow
Turning the MFM render container into a div changes it to display as a block which messes up rendering in some places, e.g. when it is used to render user names in "Renoted by".
This commit is contained in:
parent
2ea6daaf7a
commit
2d46cf7c1e
2 changed files with 3 additions and 1 deletions
|
@ -175,6 +175,8 @@ withDefaults(defineProps<{
|
|||
<style lang="scss" scoped>
|
||||
.havbbuyv {
|
||||
white-space: pre-wrap;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
overflow: hidden;
|
||||
|
||||
&.nowrap {
|
||||
|
|
|
@ -334,6 +334,6 @@ export default defineComponent({
|
|||
}).flat();
|
||||
|
||||
// Parse ast to DOM
|
||||
return h('div', genEl(ast));
|
||||
return h('span', genEl(ast));
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue