AI分析Markdown渲染间距优化,去除pre-wrap双重间距;Dockerfile npm换国内镜像
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,8 @@ WORKDIR /ui
|
|||||||
|
|
||||||
# 优先拷贝 package.json 命中 layer cache;无 lock 时退回 npm install
|
# 优先拷贝 package.json 命中 layer cache;无 lock 时退回 npm install
|
||||||
COPY frontend/package*.json ./
|
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 ./
|
COPY frontend ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -322,8 +322,24 @@ const quadrantLabel = (q: string) => {
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
.ai-text {
|
.ai-text {
|
||||||
line-height: 1.8;
|
line-height: 1.7;
|
||||||
white-space: pre-wrap;
|
}
|
||||||
|
.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 {
|
.ai-error {
|
||||||
color: var(--el-color-danger);
|
color: var(--el-color-danger);
|
||||||
|
|||||||
Reference in New Issue
Block a user