style: 调整系统设置备份面板布局
This commit is contained in:
@@ -162,6 +162,8 @@
|
||||
- 后台图片预览工具条(2026-07-05):后台 `openMediaViewer` 在 PhotoSwipe 中注册底部工具条,保留 Naive Image 预览常用的向左旋转、向右旋转、还原、缩小、放大、下载、关闭按钮;默认 PhotoSwipe 顶栏关闭/缩放/计数被关闭,避免重复。工具条按钮通过 `appendTo: root` 创建后再用微任务移动到自建 `.artveris-pswp-toolbar`,避免 PhotoSwipe 默认 append 时机把按钮重新挂回根节点导致不可见。图片按钮在视频项自动置灰,视频仍使用现有 video 控件。已用 Codex 内置浏览器验证:作品图片和认证文件预览均显示 7 个底部按钮,放大按钮和鼠标滚轮缩放均生效。
|
||||
- 后台图片预览工具条国际化(2026-07-05):`openMediaViewer` 不再硬编码工具条 title,统一从 `pages.mediaViewer.*` 读取翻译;`zh-CN/en-US` 已覆盖旋转、还原、缩放、下载、关闭。已用 Codex 内置浏览器切换英文后台验证,预览工具条按钮 title 为 `Rotate left / Rotate right / Reset / Zoom out / Zoom in / Download / Close`。
|
||||
- 系统设置卡片布局(2026-07-05):后台「系统设置」去掉基础设置/备份恢复顶部 tab,改为一个连续页面。上方基础配置使用小卡片表单:左侧平台设置,右侧日志设置和备份策略上下排列;保存按钮固定在右上角,不独占工具栏。客户端轮播间隔归入平台设置;查询日志保留天数、操作日志保留天数、备份保留天数、最多保留备份数量等数字输入框使用窄宽并居中显示。备份策略中的“启用定时备份 + 备份周期”合并为一个“定时备份”下拉,选项为关闭/每天/每周;下方直接显示备份与恢复面板。
|
||||
- 系统设置排版细化(2026-07-05):系统设置卡片标签列统一加宽,确保客户端轮播间隔、查询日志保留天数、操作日志保留天数等长标题在中英文下都完整显示;平台名称、证书水印文案、备案信息输入框限宽,避免平台设置卡片过空。保存按钮定位到设置卡片区域右侧,不再贴浏览器远端;备份与恢复工具栏按钮右对齐,备份列表容器恢复为占满剩余高度的自适应布局。
|
||||
- 系统设置备份面板宽度(2026-07-05):备份与恢复面板不再跟随上方设置卡片的最大宽度限制,改为 `width: 100%` 占满系统设置内容区;上方平台/日志/备份策略卡片继续保持表单舒适宽度,下方备份列表按浏览器可用宽度自适应展开。
|
||||
|
||||
## 当前代码基准与注意事项
|
||||
|
||||
|
||||
@@ -228,6 +228,7 @@ onMounted(load);
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin: 0 -12px 12px;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<template>
|
||||
<div class="page settings-page">
|
||||
<div class="settings-shell">
|
||||
<div class="settings-save">
|
||||
<n-button type="primary" :loading="saving" @click="save">{{ t('common.action.save') }}</n-button>
|
||||
</div>
|
||||
|
||||
<div class="settings-content">
|
||||
<n-form class="settings-form" label-placement="top">
|
||||
<div class="settings-save">
|
||||
<n-button type="primary" :loading="saving" @click="save">{{ t('common.action.save') }}</n-button>
|
||||
</div>
|
||||
|
||||
<div class="settings-card-grid">
|
||||
<section class="settings-card platform-card">
|
||||
<div class="card-title">{{ t('pages.settings.platformInfo') }}</div>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.appName')">
|
||||
<n-input v-model:value="form.appName" />
|
||||
<n-input v-model:value="form.appName" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div class="setting-row icon-row">
|
||||
@@ -26,12 +26,12 @@
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.watermarkText')">
|
||||
<n-input v-model:value="form.watermarkText" />
|
||||
<n-input v-model:value="form.watermarkText" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.filingInfo')">
|
||||
<n-input v-model:value="form.filingInfo" />
|
||||
<n-input v-model:value="form.filingInfo" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
@@ -187,7 +187,6 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
.settings-shell {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
@@ -198,24 +197,28 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
.settings-save {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
right: 0;
|
||||
z-index: 8;
|
||||
}
|
||||
.settings-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
overflow: hidden;
|
||||
padding: 0 10px 24px 0;
|
||||
}
|
||||
.settings-form {
|
||||
width: min(1060px, 100%);
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
width: min(1120px, 100%);
|
||||
}
|
||||
.settings-card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(420px, 1fr) minmax(360px, 420px);
|
||||
grid-template-columns: minmax(520px, 600px) minmax(460px, 500px);
|
||||
align-items: start;
|
||||
gap: 12px;
|
||||
padding-right: 84px;
|
||||
padding-right: 76px;
|
||||
}
|
||||
.settings-side-stack {
|
||||
display: grid;
|
||||
@@ -249,7 +252,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
}
|
||||
.settings-form :deep(.n-form-item) {
|
||||
display: grid;
|
||||
grid-template-columns: 108px minmax(0, 1fr);
|
||||
grid-template-columns: 230px minmax(0, 1fr);
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas: "label blank";
|
||||
align-items: center;
|
||||
@@ -275,6 +278,9 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
.control-wide {
|
||||
width: 100%;
|
||||
}
|
||||
.text-control {
|
||||
width: min(240px, 100%);
|
||||
}
|
||||
.number-control {
|
||||
width: 132px;
|
||||
}
|
||||
@@ -293,7 +299,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
}
|
||||
.icon-row {
|
||||
display: grid;
|
||||
grid-template-columns: 108px minmax(0, 1fr);
|
||||
grid-template-columns: 230px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
column-gap: 12px;
|
||||
}
|
||||
@@ -336,11 +342,12 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
display: none;
|
||||
}
|
||||
.settings-backup-panel {
|
||||
width: min(1060px, 100%);
|
||||
height: 430px;
|
||||
min-height: 360px;
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
margin-top: 12px;
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--n-border-color);
|
||||
border-radius: 8px;
|
||||
background: var(--n-card-color);
|
||||
@@ -353,7 +360,10 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
.settings-card-grid {
|
||||
grid-template-columns: 1fr;
|
||||
padding-right: 0;
|
||||
padding-top: 46px;
|
||||
padding-top: 44px;
|
||||
}
|
||||
.settings-save {
|
||||
right: 0;
|
||||
}
|
||||
.icon-setting {
|
||||
grid-template-columns: 60px minmax(0, 1fr);
|
||||
|
||||
Reference in New Issue
Block a user