style(contenteditable): 为错误消息添加红色样式并使编辑器区域成为 flex 容器
- 在 .error-message 类中添加红色样式 - 在编辑器容器中应用 flex 布局,以改善内容对齐
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user