style: 优化 CellData 扫描路径排版

This commit is contained in:
2026-06-25 05:10:44 +08:00
parent d052558d58
commit fe7aad3353
3 changed files with 22 additions and 4 deletions
+5
View File
@@ -795,3 +795,8 @@
- 扫描路径属于文件来源配置,已移回 CellData 数据源卡片中展示和维护;「规则设置」弹窗只保留高级正则与映射 JSON,避免弹窗承担过多基础配置。
- 验证:`frontend` `npm run build` 通过;构建产物已清理。
## 2026-06-25:优化 CellData 扫描路径排版
- CellData 数据源卡片中的扫描路径区域改为全宽列表布局,说明文字、说明按钮、路径输入、删除按钮和添加输入保持对齐,减少左侧拥挤。
- 验证:`frontend` `npm run build` 通过;构建产物已清理。
+3 -3
View File
@@ -293,7 +293,7 @@
<n-form-item label="扫描路径">
<div class="cell-data-path-editor">
<div class="cell-data-path-header">
<span class="form-hint">支持路径模板和多目录组合</span>
<span>支持路径模板和多目录组合</span>
<n-button quaternary circle size="small" title="查看说明" @click="cellDataHelpVisible = true">
<template #icon>
<n-icon><InformationCircleOutline /></n-icon>
@@ -310,8 +310,8 @@
</n-button>
</div>
</div>
<n-input-group>
<n-input v-model:value="newCellDataScanPath" placeholder="扫描路径模板" @keydown.enter.prevent="addCellDataScanPath" />
<n-input-group class="cell-data-path-add">
<n-input v-model:value="newCellDataScanPath" placeholder="添加扫描路径模板" @keydown.enter.prevent="addCellDataScanPath" />
<n-button @click="addCellDataScanPath">添加</n-button>
</n-input-group>
</div>
+14 -1
View File
@@ -1579,9 +1579,10 @@ select {
.cell-data-path-editor,
.cell-data-path-list {
display: flex;
width: 100%;
min-width: 0;
flex-direction: column;
gap: 8px;
gap: 10px;
}
.cell-data-path-header {
@@ -1589,6 +1590,9 @@ select {
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--td-text-color-placeholder);
font-size: 12px;
line-height: 20px;
}
.cell-data-path-row {
@@ -1597,6 +1601,15 @@ select {
gap: 8px;
}
.cell-data-path-add {
width: 100%;
}
.cell-data-path-row .n-input,
.cell-data-path-add .n-input {
min-width: 0;
}
.cell-data-help-scroll {
max-height: 360px;
}