消息编辑和消息显示换行

This commit is contained in:
bob
2025-04-21 16:36:01 +08:00
parent 10c47f4389
commit 22e95f59bb
2 changed files with 5 additions and 0 deletions

View File

@@ -409,6 +409,9 @@ defineExpose({
padding-left: 16px;
font-size: 14px;
background-color: #fff;
white-space: pre-wrap; /* 允许换行 */
word-break: break-word; /* 长单词或URL强制换行 */
overflow-wrap: break-word; /* 兼容性更好的换行 */
}
}
}

View File

@@ -878,6 +878,8 @@ watch(
border-top-right-radius: 0;
user-select: text;
white-space: pre-wrap;
word-break: break-word; /* 长单词或URL强制换行 */
overflow-wrap: break-word; /* 兼容性更好的换行 */
}
.my-message-status {