AI分析Markdown渲染间距优化,去除pre-wrap双重间距;Dockerfile npm换国内镜像

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-05-10 17:32:49 +08:00
parent 04636c53d8
commit 1d1a6d6cdf
2 changed files with 20 additions and 3 deletions

View File

@@ -5,7 +5,8 @@ WORKDIR /ui
# 优先拷贝 package.json 命中 layer cache;无 lock 时退回 npm install
COPY frontend/package*.json ./
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
RUN npm config set registry https://registry.npmmirror.com && \
if [ -f package-lock.json ]; then npm ci; else npm install; fi
COPY frontend ./
RUN npm run build

View File

@@ -322,8 +322,24 @@ const quadrantLabel = (q: string) => {
padding: 12px;
}
.ai-text {
line-height: 1.8;
white-space: pre-wrap;
line-height: 1.7;
}
.ai-text :deep(p) {
margin: 8px 0;
}
.ai-text :deep(h1),
.ai-text :deep(h2),
.ai-text :deep(h3),
.ai-text :deep(h4) {
margin: 16px 0 8px;
}
.ai-text :deep(ul),
.ai-text :deep(ol) {
margin: 8px 0;
padding-left: 20px;
}
.ai-text :deep(li) {
margin: 4px 0;
}
.ai-error {
color: var(--el-color-danger);