style: 收紧系统设置卡片间距
This commit is contained in:
@@ -164,6 +164,7 @@
|
|||||||
- 系统设置卡片布局(2026-07-05):后台「系统设置」去掉基础设置/备份恢复顶部 tab,改为一个连续页面。上方基础配置使用小卡片表单:左侧平台设置,右侧日志设置和备份策略上下排列;保存按钮固定在右上角,不独占工具栏。客户端轮播间隔归入平台设置;查询日志保留天数、操作日志保留天数、备份保留天数、最多保留备份数量等数字输入框使用窄宽并居中显示。备份策略中的“启用定时备份 + 备份周期”合并为一个“定时备份”下拉,选项为关闭/每天/每周;下方直接显示备份与恢复面板。
|
- 系统设置卡片布局(2026-07-05):后台「系统设置」去掉基础设置/备份恢复顶部 tab,改为一个连续页面。上方基础配置使用小卡片表单:左侧平台设置,右侧日志设置和备份策略上下排列;保存按钮固定在右上角,不独占工具栏。客户端轮播间隔归入平台设置;查询日志保留天数、操作日志保留天数、备份保留天数、最多保留备份数量等数字输入框使用窄宽并居中显示。备份策略中的“启用定时备份 + 备份周期”合并为一个“定时备份”下拉,选项为关闭/每天/每周;下方直接显示备份与恢复面板。
|
||||||
- 系统设置排版细化(2026-07-05):系统设置卡片标签列统一加宽,确保客户端轮播间隔、查询日志保留天数、操作日志保留天数等长标题在中英文下都完整显示;平台名称、证书水印文案、备案信息输入框限宽,避免平台设置卡片过空。保存按钮定位到设置卡片区域右侧,不再贴浏览器远端;备份与恢复工具栏按钮右对齐,备份列表容器恢复为占满剩余高度的自适应布局。
|
- 系统设置排版细化(2026-07-05):系统设置卡片标签列统一加宽,确保客户端轮播间隔、查询日志保留天数、操作日志保留天数等长标题在中英文下都完整显示;平台名称、证书水印文案、备案信息输入框限宽,避免平台设置卡片过空。保存按钮定位到设置卡片区域右侧,不再贴浏览器远端;备份与恢复工具栏按钮右对齐,备份列表容器恢复为占满剩余高度的自适应布局。
|
||||||
- 系统设置备份面板宽度(2026-07-05):备份与恢复面板不再跟随上方设置卡片的最大宽度限制,改为 `width: 100%` 占满系统设置内容区;上方平台/日志/备份策略卡片继续保持表单舒适宽度,下方备份列表按浏览器可用宽度自适应展开。
|
- 系统设置备份面板宽度(2026-07-05):备份与恢复面板不再跟随上方设置卡片的最大宽度限制,改为 `width: 100%` 占满系统设置内容区;上方平台/日志/备份策略卡片继续保持表单舒适宽度,下方备份列表按浏览器可用宽度自适应展开。
|
||||||
|
- 系统设置卡片间距(2026-07-05):设置卡片内字段行改为按标签内容自适应宽度,控件紧随标题后固定 16px 间距,不再用过宽标签列制造空白;右侧日志/备份策略卡片按可用右栏宽度适配。定时备份下拉和数字步进器统一为 128px,保持紧凑。
|
||||||
|
|
||||||
## 当前代码基准与注意事项
|
## 当前代码基准与注意事项
|
||||||
|
|
||||||
|
|||||||
@@ -211,11 +211,11 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
.settings-form {
|
.settings-form {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: min(1120px, 100%);
|
width: min(1048px, 100%);
|
||||||
}
|
}
|
||||||
.settings-card-grid {
|
.settings-card-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(520px, 600px) minmax(460px, 500px);
|
grid-template-columns: minmax(500px, 1fr) minmax(390px, 440px);
|
||||||
align-items: start;
|
align-items: start;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding-right: 76px;
|
padding-right: 76px;
|
||||||
@@ -252,11 +252,11 @@ 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: 230px minmax(0, 1fr);
|
grid-template-columns: max-content 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: 12px;
|
column-gap: 16px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.settings-form :deep(.n-form-item-label) {
|
.settings-form :deep(.n-form-item-label) {
|
||||||
@@ -266,8 +266,6 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
.settings-form :deep(.n-form-item-blank) {
|
.settings-form :deep(.n-form-item-blank) {
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
@@ -282,13 +280,13 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
width: min(240px, 100%);
|
width: min(240px, 100%);
|
||||||
}
|
}
|
||||||
.number-control {
|
.number-control {
|
||||||
width: 132px;
|
width: 128px;
|
||||||
}
|
}
|
||||||
.number-control :deep(.n-input__input-el) {
|
.number-control :deep(.n-input__input-el) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.select-control {
|
.select-control {
|
||||||
width: 160px;
|
width: 128px;
|
||||||
}
|
}
|
||||||
.setting-label {
|
.setting-label {
|
||||||
color: var(--n-text-color-2);
|
color: var(--n-text-color-2);
|
||||||
@@ -299,9 +297,9 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
}
|
}
|
||||||
.icon-row {
|
.icon-row {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 230px minmax(0, 1fr);
|
grid-template-columns: max-content max-content;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 12px;
|
column-gap: 16px;
|
||||||
}
|
}
|
||||||
.icon-setting {
|
.icon-setting {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
Reference in New Issue
Block a user