style(contenteditable): 为错误消息添加红色样式并使编辑器区域成为 flex 容器

- 在 .error-message 类中添加红色样式
- 在编辑器容器中应用 flex 布局,以改善内容对齐
This commit is contained in:
陈昱达
2025-03-22 14:33:40 +08:00
parent 9e0ab6c5d8
commit 256a3d05f9

View File

@@ -1,6 +1,6 @@
<template>
<div :class="className">
<div class="contenteditable align-center space-between">
<div class="flex contenteditable align-center space-between">
<p
:id="'editor' + id"
ref="editor"
@@ -327,6 +327,7 @@ const insertImageAtCaret = (html) => {
color: #c4c9d4;
}
.error-message {
color: red;
flex: none;
font-size: 12px;
}