kuaifan 587db459bf feat(dialog): 聊天消息 Markdown 表格单元格强制不换行
DialogMarkdown 根节点新增 .dialog-markdown 类,统一规则放 markdown.less,删除 dialog-wrapper.scss 里仅覆盖 thead th 的旧局部规则。所有走 DialogMarkdown 组件的入口(聊天消息、bot 模板、单条消息分享页、AI 助手)一次性生效;任务描述、报告编辑等直接调用 MarkdownConver 的场景不受影响。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 15:40:57 +00:00

156 lines
3.2 KiB
Plaintext

@import "highlight";
@import "github";
body {
&.dark-mode-reverse {
.markdown-body {
color: #ffffff;
.highlight pre,
pre {
background-color: #282c34;
}
}
.self {
.markdown-body {
table {
color: #abb2bf;
}
}
}
}
.markdown-body {
color: #303133;
background-color: transparent;
font-size: 14px;
overflow: auto;
p {
white-space: pre-wrap;
}
ol {
list-style-type: decimal;
}
ul {
list-style-type: disc;
}
pre code,
pre tt {
line-height: 1.65;
}
.highlight pre,
pre {
background-color: #fff;
}
code.hljs {
padding: 0;
}
.code-block {
&-wrapper {
position: relative;
padding-top: 24px;
}
&-header {
position: absolute;
top: 5px;
right: 0;
width: 100%;
padding: 0 1rem;
display: flex;
justify-content: flex-end;
align-items: center;
color: #b3b3b3;
&__copy {
cursor: pointer;
margin-left: 0.5rem;
user-select: none;
&:hover {
color: #65a665;
}
}
}
}
.input-blink {
width: 10px;
height: 20px;
position: relative;
&:before {
position: absolute;
content: '';
display: inline-block;
width: 2px;
height: 16px;
top: 50%;
transform: translateY(-50%);
animation: blink-animate 1.2s infinite steps(1, start);
}
}
.ai-action-buttons {
display: inline-flex;
gap: 4px;
.ai-btn {
display: inline-flex;
align-items: center;
padding: 0 4px;
text-decoration: none;
cursor: pointer;
&.ai-btn-apply {
color: #52c41a;
}
&.ai-btn-dismiss {
color: #909399;
}
}
}
.ai-status {
display: inline-block;
margin-left: 8px;
color: #909399;
}
}
.self {
.markdown-body {
color: #ffffff;
table {
color: #383a42;
}
}
}
.dialog-markdown {
table {
th, td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
@keyframes blink-animate {
0%,to {
background-color: currentColor
}
50% {
background-color: transparent
}
}
}