style: 修复系统设置滚动布局
This commit is contained in:
@@ -165,6 +165,9 @@
|
|||||||
- 系统设置排版细化(2026-07-05):系统设置卡片标签列统一加宽,确保客户端轮播间隔、查询日志保留天数、操作日志保留天数等长标题在中英文下都完整显示;平台名称、证书水印文案、备案信息输入框限宽,避免平台设置卡片过空。保存按钮定位到设置卡片区域右侧,不再贴浏览器远端;备份与恢复工具栏按钮右对齐,备份列表容器恢复为占满剩余高度的自适应布局。
|
- 系统设置排版细化(2026-07-05):系统设置卡片标签列统一加宽,确保客户端轮播间隔、查询日志保留天数、操作日志保留天数等长标题在中英文下都完整显示;平台名称、证书水印文案、备案信息输入框限宽,避免平台设置卡片过空。保存按钮定位到设置卡片区域右侧,不再贴浏览器远端;备份与恢复工具栏按钮右对齐,备份列表容器恢复为占满剩余高度的自适应布局。
|
||||||
- 系统设置备份面板宽度(2026-07-05):备份与恢复面板不再跟随上方设置卡片的最大宽度限制,改为 `width: 100%` 占满系统设置内容区;上方平台/日志/备份策略卡片继续保持表单舒适宽度,下方备份列表按浏览器可用宽度自适应展开。
|
- 系统设置备份面板宽度(2026-07-05):备份与恢复面板不再跟随上方设置卡片的最大宽度限制,改为 `width: 100%` 占满系统设置内容区;上方平台/日志/备份策略卡片继续保持表单舒适宽度,下方备份列表按浏览器可用宽度自适应展开。
|
||||||
- 系统设置卡片间距(2026-07-05):设置卡片内字段行改为按标签内容自适应宽度,控件紧随标题后固定 16px 间距,不再用过宽标签列制造空白;右侧日志/备份策略卡片按可用右栏宽度适配。定时备份下拉和数字步进器统一为 128px,保持紧凑。
|
- 系统设置卡片间距(2026-07-05):设置卡片内字段行改为按标签内容自适应宽度,控件紧随标题后固定 16px 间距,不再用过宽标签列制造空白;右侧日志/备份策略卡片按可用右栏宽度适配。定时备份下拉和数字步进器统一为 128px,保持紧凑。
|
||||||
|
- 系统设置卡片宽度收敛(2026-07-05):上方设置卡片区域改为内容宽度布局,平台设置卡片约 410px,日志设置/备份策略右侧卡片组约 390px,减少每张卡片右侧空白;保存按钮跟随该设置卡片区域右侧定位。下方备份与恢复面板仍保持 `width: 100%` 自适应内容区。
|
||||||
|
- 系统设置两列稳定布局(2026-07-05):系统设置上方卡片区固定两列显示,不再因浏览器缩小自动变成单列;平台设置卡片约 448px,日志设置和备份策略卡片统一约 376px。卡片内字段行使用固定标签列 + 12px 间距 + 固定控件列(平台卡片标签列 148px,右侧卡片标签列 128px),保证同一卡片内标题左侧、输入框/选择框起点对齐。中文“客户端轮播间隔(秒)”改为“客户端轮播间隔”,英文设置字段也同步缩短以适配紧凑布局。
|
||||||
|
- 系统设置滚动修复(2026-07-05):系统设置页恢复为占满后台内容区固定高度,外层 `.settings-page` 隐藏溢出,避免和主布局同时产生双滚动条;滚动职责集中到 `.settings-content`,在浏览器高度不足时只出现一根设置内容滚动条。备份与恢复面板固定最小高度 320px,备份表格保留至少 180px,可保证低高度下备份列表和分页仍可见。
|
||||||
|
|
||||||
## 当前代码基准与注意事项
|
## 当前代码基准与注意事项
|
||||||
|
|
||||||
|
|||||||
@@ -251,6 +251,6 @@ onMounted(load);
|
|||||||
}
|
}
|
||||||
.backup-table {
|
.backup-table {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-height: 0;
|
min-height: 180px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -428,16 +428,16 @@
|
|||||||
"backupPolicy": "Backup Policy",
|
"backupPolicy": "Backup Policy",
|
||||||
"appName": "Platform Name",
|
"appName": "Platform Name",
|
||||||
"appIcon": "System Icon",
|
"appIcon": "System Icon",
|
||||||
"logRetentionDays": "Query Log Retention (days)",
|
"logRetentionDays": "Query Log Days",
|
||||||
"operationLogRetentionDays": "Operation Log Retention (days)",
|
"operationLogRetentionDays": "Operation Log Days",
|
||||||
"watermarkText": "Certificate Watermark",
|
"watermarkText": "Certificate Watermark",
|
||||||
"filingInfo": "Filing Info",
|
"filingInfo": "Filing Info",
|
||||||
"carouselInterval": "Client Carousel Interval (s)",
|
"carouselInterval": "Carousel Interval",
|
||||||
"carouselIntervalHint": "Seconds each media stays; decimals allowed. 0 disables auto-advance (manual loop still works).",
|
"carouselIntervalHint": "Seconds each media stays; decimals allowed. 0 disables auto-advance (manual loop still works).",
|
||||||
"backupEnabled": "Enable Scheduled Backup",
|
"backupEnabled": "Enable Scheduled Backup",
|
||||||
"backupSchedule": "Scheduled Backup",
|
"backupSchedule": "Scheduled Backup",
|
||||||
"backupRetentionDays": "Backup Retention Days",
|
"backupRetentionDays": "Backup Days",
|
||||||
"backupRetentionCount": "Max Backup Count",
|
"backupRetentionCount": "Max Backups",
|
||||||
"scheduleOff": "Off",
|
"scheduleOff": "Off",
|
||||||
"scheduleDaily": "Daily",
|
"scheduleDaily": "Daily",
|
||||||
"scheduleWeekly": "Weekly",
|
"scheduleWeekly": "Weekly",
|
||||||
|
|||||||
@@ -432,7 +432,7 @@
|
|||||||
"operationLogRetentionDays": "操作日志保留天数",
|
"operationLogRetentionDays": "操作日志保留天数",
|
||||||
"watermarkText": "证书水印文案",
|
"watermarkText": "证书水印文案",
|
||||||
"filingInfo": "备案信息",
|
"filingInfo": "备案信息",
|
||||||
"carouselInterval": "客户端轮播间隔(秒)",
|
"carouselInterval": "客户端轮播间隔",
|
||||||
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
|
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
|
||||||
"backupEnabled": "启用定时备份",
|
"backupEnabled": "启用定时备份",
|
||||||
"backupSchedule": "定时备份",
|
"backupSchedule": "定时备份",
|
||||||
|
|||||||
@@ -205,17 +205,17 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: auto;
|
||||||
padding: 0 10px 24px 0;
|
padding: 0 10px 24px 0;
|
||||||
}
|
}
|
||||||
.settings-form {
|
.settings-form {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: min(1048px, 100%);
|
width: 912px;
|
||||||
}
|
}
|
||||||
.settings-card-grid {
|
.settings-card-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(500px, 1fr) minmax(390px, 440px);
|
grid-template-columns: max-content max-content;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding-right: 76px;
|
padding-right: 76px;
|
||||||
@@ -223,6 +223,10 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
.settings-side-stack {
|
.settings-side-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
width: 376px;
|
||||||
|
}
|
||||||
|
.platform-card {
|
||||||
|
width: 448px;
|
||||||
}
|
}
|
||||||
.settings-card {
|
.settings-card {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -252,13 +256,16 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
}
|
}
|
||||||
.settings-form :deep(.n-form-item) {
|
.settings-form :deep(.n-form-item) {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: max-content max-content;
|
grid-template-columns: 128px max-content;
|
||||||
grid-template-rows: auto;
|
grid-template-rows: auto;
|
||||||
grid-template-areas: "label blank";
|
grid-template-areas: "label blank";
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 16px;
|
column-gap: 12px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.platform-card :deep(.n-form-item) {
|
||||||
|
grid-template-columns: 148px max-content;
|
||||||
|
}
|
||||||
.settings-form :deep(.n-form-item-label) {
|
.settings-form :deep(.n-form-item-label) {
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -277,7 +284,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.text-control {
|
.text-control {
|
||||||
width: min(240px, 100%);
|
width: 180px;
|
||||||
}
|
}
|
||||||
.number-control {
|
.number-control {
|
||||||
width: 128px;
|
width: 128px;
|
||||||
@@ -297,9 +304,12 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
}
|
}
|
||||||
.icon-row {
|
.icon-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: max-content max-content;
|
grid-template-columns: 128px max-content;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 16px;
|
column-gap: 12px;
|
||||||
|
}
|
||||||
|
.platform-card .icon-row {
|
||||||
|
grid-template-columns: 148px max-content;
|
||||||
}
|
}
|
||||||
.icon-setting {
|
.icon-setting {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -340,9 +350,9 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.settings-backup-panel {
|
.settings-backup-panel {
|
||||||
flex: 1 1 auto;
|
flex: 0 0 auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 0;
|
min-height: 320px;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -356,9 +366,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.settings-card-grid {
|
.settings-card-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: max-content max-content;
|
||||||
padding-right: 0;
|
|
||||||
padding-top: 44px;
|
|
||||||
}
|
}
|
||||||
.settings-save {
|
.settings-save {
|
||||||
right: 0;
|
right: 0;
|
||||||
@@ -368,6 +376,9 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
.settings-content {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
.settings-form :deep(.n-form-item),
|
.settings-form :deep(.n-form-item),
|
||||||
.icon-row {
|
.icon-row {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|||||||
Reference in New Issue
Block a user