style: markdown返回pre标签换行

This commit is contained in:
rd
2025-09-02 10:10:03 +08:00
parent 6a882309f9
commit ef8c10c056
2 changed files with 47 additions and 44 deletions

View File

@ -29,30 +29,6 @@
flex-direction: row-reverse;
}
.thought-chain-item {
position: relative;
margin: 0;
font-size: 12px;
list-style: none;
.thought-chain-output {
position: relative;
&.hasLine {
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-left: 1px solid #e6e6e8;
}
}
}
}
.xt-bubble-avatar {
}
.xt-bubble-content {
display: flex;
flex-direction: column;
@ -104,25 +80,52 @@
border-radius: 4px;
}
:deep(table) {
border-collapse: collapse;
thead {
tr {
th {
@include cts;
padding: 6px 8px;
border: 1px solid #e6e6e8;
text-align: left;
.thought-chain-item {
position: relative;
margin: 0;
font-size: 12px;
list-style: none;
.thought-chain-output {
position: relative;
&.hasLine {
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-left: 1px solid #e6e6e8;
}
}
}
tbody {
tr {
td {
@include cts;
border: 1px solid #e6e6e8;
padding: 16px 8px;
text-align: left;
}
// 设置markdown返回的标签样式
:deep(.markdown-wrap) {
pre {
white-space: normal;
}
table {
border-collapse: collapse;
thead {
tr {
th {
@include cts;
padding: 6px 8px;
border: 1px solid #e6e6e8;
text-align: left;
}
}
}
tbody {
tr {
td {
@include cts;
border: 1px solid #e6e6e8;
padding: 16px 8px;
text-align: left;
}
}
}
}