From d148826fd860dac6f632ad4c202623d497349ce0 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Sun, 28 Apr 2024 14:51:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BB=84=E4=BB=B6=E5=9E=82=E7=9B=B4?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E5=92=8C=E7=BD=AE=E5=BA=95=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rich-text/DeRichTextView.vue | 16 ++++------------ .../rich-text/plugins/vertical-content.ts | 4 ++-- 2 files changed, 6 insertions(+), 14 deletions(-) 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({