diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 2647c97526..bc2b408be1 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -174,20 +174,12 @@ watch( } ) const ALIGN_MAP = { - 'top-align': { - display: 'flex', - 'flex-direction': 'column', - 'justify-content': 'flex-start' - }, + 'top-align': {}, 'center-align': { - display: 'flex', - 'flex-direction': 'column', - 'justify-content': 'center' + margin: 'auto' }, 'bottom-align': { - display: 'flex', - 'flex-direction': 'column', - 'justify-content': 'flex-end' + 'margin-top': 'auto' } } const wrapperStyle = computed(() => { @@ -468,6 +460,7 @@ defineExpose({