translate not fin

This commit is contained in:
505030475
2023-05-19 23:52:20 +08:00
parent 8d528190a9
commit c376e46f4d
3 changed files with 792 additions and 114 deletions

View File

@@ -103,35 +103,30 @@ def adjust_theme():
advanced_css = """
/* 设置表格的外边距为1em内部单元格之间边框合并空单元格显示. */
.markdown-body table {
margin: 1em 0;
border-collapse: collapse;
empty-cells: show;
}
/* 设置表格单元格的内边距为5px边框粗细为1.2px,颜色为--border-color-primary. */
.markdown-body th, .markdown-body td {
border: 1.2px solid var(--border-color-primary);
padding: 5px;
}
/* 设置表头背景颜色为rgba(175,184,193,0.2)透明度为0.2. */
.markdown-body thead {
background-color: rgba(175,184,193,0.2);
}
/* 设置表头单元格的内边距为0.5em和0.2em. */
.markdown-body thead th {
padding: .5em .2em;
}
/* 去掉列表前缀的默认间距,使其与文本线对齐. */
.markdown-body ol, .markdown-body ul {
padding-inline-start: 2em !important;
}
/* 设定聊天气泡的样式,包括圆角、最大宽度和阴影等. */
/* chat box. */
[class *= "message"] {
border-radius: var(--radius-xl) !important;
/* padding: var(--spacing-xl) !important; */
@@ -151,7 +146,7 @@ advanced_css = """
border-bottom-right-radius: 0 !important;
}
/* 行内代码的背景设为淡灰色,设定圆角和间距. */
/* linein code block. */
.markdown-body code {
display: inline;
white-space: break-spaces;
@@ -171,7 +166,7 @@ advanced_css = """
background-color: rgba(175,184,193,0.2);
}
/* 设定代码块的样式,包括背景颜色、内、外边距、圆角。 */
/* code block css */
.markdown-body pre code {
display: block;
overflow: auto;