style: 优化系统设置卡片排版
This commit is contained in:
@@ -161,6 +161,7 @@
|
|||||||
- 后台详情页图片预览统一(2026-07-05):艺术品详情页中溯源时间轴图片和认证文件封面不再使用 Naive UI `n-image` 预览层,统一改为普通缩略图点击后调用后台 `openMediaViewer`。这样打开样式与后台其他图片预览一致,并能使用 PhotoSwipe 的鼠标滚轮缩放兜底;视频仍保持原页面内原生 video 控件。
|
- 后台详情页图片预览统一(2026-07-05):艺术品详情页中溯源时间轴图片和认证文件封面不再使用 Naive UI `n-image` 预览层,统一改为普通缩略图点击后调用后台 `openMediaViewer`。这样打开样式与后台其他图片预览一致,并能使用 PhotoSwipe 的鼠标滚轮缩放兜底;视频仍保持原页面内原生 video 控件。
|
||||||
- 后台图片预览工具条(2026-07-05):后台 `openMediaViewer` 在 PhotoSwipe 中注册底部工具条,保留 Naive Image 预览常用的向左旋转、向右旋转、还原、缩小、放大、下载、关闭按钮;默认 PhotoSwipe 顶栏关闭/缩放/计数被关闭,避免重复。工具条按钮通过 `appendTo: root` 创建后再用微任务移动到自建 `.artveris-pswp-toolbar`,避免 PhotoSwipe 默认 append 时机把按钮重新挂回根节点导致不可见。图片按钮在视频项自动置灰,视频仍使用现有 video 控件。已用 Codex 内置浏览器验证:作品图片和认证文件预览均显示 7 个底部按钮,放大按钮和鼠标滚轮缩放均生效。
|
- 后台图片预览工具条(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):`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,改为一个连续页面。上方基础配置使用小卡片表单:左侧平台设置,右侧日志设置和备份策略上下排列;保存按钮固定在右上角,不独占工具栏。客户端轮播间隔归入平台设置;查询日志保留天数、操作日志保留天数、备份保留天数、最多保留备份数量等数字输入框使用窄宽并居中显示。备份策略中的“启用定时备份 + 备份周期”合并为一个“定时备份”下拉,选项为关闭/每天/每周;下方直接显示备份与恢复面板。
|
||||||
|
|
||||||
## 当前代码基准与注意事项
|
## 当前代码基准与注意事项
|
||||||
|
|
||||||
|
|||||||
@@ -423,8 +423,8 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"baseSettings": "Basic Settings",
|
"baseSettings": "Basic Settings",
|
||||||
"platformInfo": "Platform Info",
|
"platformInfo": "Platform Settings",
|
||||||
"logAndDisplay": "Logs & Display",
|
"logAndDisplay": "Log Settings",
|
||||||
"backupPolicy": "Backup Policy",
|
"backupPolicy": "Backup Policy",
|
||||||
"appName": "Platform Name",
|
"appName": "Platform Name",
|
||||||
"appIcon": "System Icon",
|
"appIcon": "System Icon",
|
||||||
@@ -435,9 +435,10 @@
|
|||||||
"carouselInterval": "Client Carousel Interval (s)",
|
"carouselInterval": "Client Carousel Interval (s)",
|
||||||
"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": "Backup Schedule",
|
"backupSchedule": "Scheduled Backup",
|
||||||
"backupRetentionDays": "Backup Retention Days",
|
"backupRetentionDays": "Backup Retention Days",
|
||||||
"backupRetentionCount": "Max Backup Count",
|
"backupRetentionCount": "Max Backup Count",
|
||||||
|
"scheduleOff": "Off",
|
||||||
"scheduleDaily": "Daily",
|
"scheduleDaily": "Daily",
|
||||||
"scheduleWeekly": "Weekly",
|
"scheduleWeekly": "Weekly",
|
||||||
"saved": "Settings saved"
|
"saved": "Settings saved"
|
||||||
|
|||||||
@@ -423,8 +423,8 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"baseSettings": "基础设置",
|
"baseSettings": "基础设置",
|
||||||
"platformInfo": "平台信息",
|
"platformInfo": "平台设置",
|
||||||
"logAndDisplay": "日志与展示",
|
"logAndDisplay": "日志设置",
|
||||||
"backupPolicy": "备份策略",
|
"backupPolicy": "备份策略",
|
||||||
"appName": "平台名称",
|
"appName": "平台名称",
|
||||||
"appIcon": "系统图标",
|
"appIcon": "系统图标",
|
||||||
@@ -435,9 +435,10 @@
|
|||||||
"carouselInterval": "客户端轮播间隔(秒)",
|
"carouselInterval": "客户端轮播间隔(秒)",
|
||||||
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
|
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
|
||||||
"backupEnabled": "启用定时备份",
|
"backupEnabled": "启用定时备份",
|
||||||
"backupSchedule": "备份周期",
|
"backupSchedule": "定时备份",
|
||||||
"backupRetentionDays": "备份保留天数",
|
"backupRetentionDays": "备份保留天数",
|
||||||
"backupRetentionCount": "最多保留备份数量",
|
"backupRetentionCount": "最多保留备份数量",
|
||||||
|
"scheduleOff": "关闭",
|
||||||
"scheduleDaily": "每天",
|
"scheduleDaily": "每天",
|
||||||
"scheduleWeekly": "每周",
|
"scheduleWeekly": "每周",
|
||||||
"saved": "设置已保存"
|
"saved": "设置已保存"
|
||||||
|
|||||||
+207
-121
@@ -1,87 +1,95 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page settings-page">
|
<div class="page settings-page">
|
||||||
<div class="settings-shell">
|
<div class="settings-shell">
|
||||||
<n-tabs type="line" animated class="settings-tabs">
|
<div class="settings-save">
|
||||||
<n-tab-pane name="base" :tab="t('pages.settings.baseSettings')">
|
<n-button type="primary" :loading="saving" @click="save">{{ t('common.action.save') }}</n-button>
|
||||||
<div class="settings-base-pane">
|
|
||||||
<n-form class="settings-form" label-placement="top">
|
|
||||||
<section class="settings-section">
|
|
||||||
<div class="section-title">{{ t('pages.settings.platformInfo') }}</div>
|
|
||||||
<div class="field-grid two">
|
|
||||||
<n-form-item :label="t('pages.settings.appName')">
|
|
||||||
<n-input v-model:value="form.appName" class="control-wide" />
|
|
||||||
</n-form-item>
|
|
||||||
<n-form-item :label="t('pages.settings.appIcon')">
|
|
||||||
<div class="icon-setting">
|
|
||||||
<img class="icon-preview" :src="currentIconUrl" alt="" />
|
|
||||||
<media-upload v-model="form.appIconFiles" type="image" :max="1" />
|
|
||||||
</div>
|
</div>
|
||||||
</n-form-item>
|
|
||||||
<n-form-item :label="t('pages.settings.watermarkText')">
|
|
||||||
<n-input v-model:value="form.watermarkText" class="control-wide" />
|
|
||||||
</n-form-item>
|
|
||||||
<n-form-item :label="t('pages.settings.filingInfo')">
|
|
||||||
<n-input v-model:value="form.filingInfo" class="control-wide" />
|
|
||||||
</n-form-item>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="settings-section">
|
<div class="settings-content">
|
||||||
<div class="section-title">{{ t('pages.settings.logAndDisplay') }}</div>
|
<n-form class="settings-form" label-placement="top">
|
||||||
<div class="field-grid three">
|
<div class="settings-card-grid">
|
||||||
<n-form-item :label="t('pages.settings.logRetentionDays')">
|
<section class="settings-card platform-card">
|
||||||
<n-input-number v-model:value="form.logRetentionDays" :min="1" class="control-short" />
|
<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-form-item>
|
</n-form-item>
|
||||||
<n-form-item :label="t('pages.settings.operationLogRetentionDays')">
|
</div>
|
||||||
<n-input-number v-model:value="form.operationLogRetentionDays" :min="1" class="control-short" />
|
<div class="setting-row icon-row">
|
||||||
|
<div class="setting-label">{{ t('pages.settings.appIcon') }}</div>
|
||||||
|
<div class="icon-setting">
|
||||||
|
<div class="icon-preview-wrap">
|
||||||
|
<img class="icon-preview" :src="currentIconUrl" alt="" />
|
||||||
|
</div>
|
||||||
|
<media-upload v-model="form.appIconFiles" type="image" :max="1" class="icon-upload" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
|
<n-form-item :label="t('pages.settings.watermarkText')">
|
||||||
|
<n-input v-model:value="form.watermarkText" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
|
<n-form-item :label="t('pages.settings.filingInfo')">
|
||||||
|
<n-input v-model:value="form.filingInfo" />
|
||||||
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
<n-form-item :label="t('pages.settings.carouselInterval')">
|
<n-form-item :label="t('pages.settings.carouselInterval')">
|
||||||
<div class="field-stack">
|
|
||||||
<n-input-number
|
<n-input-number
|
||||||
v-model:value="form.carouselInterval"
|
v-model:value="form.carouselInterval"
|
||||||
:min="0"
|
:min="0"
|
||||||
:max="30"
|
:max="30"
|
||||||
:step="0.5"
|
:step="0.5"
|
||||||
:precision="1"
|
:precision="1"
|
||||||
class="control-short"
|
button-placement="both"
|
||||||
|
class="number-control"
|
||||||
/>
|
/>
|
||||||
<span class="field-tip">{{ t('pages.settings.carouselIntervalHint') }}</span>
|
|
||||||
</div>
|
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="settings-section">
|
<div class="settings-side-stack">
|
||||||
<div class="section-title">{{ t('pages.settings.backupPolicy') }}</div>
|
<section class="settings-card">
|
||||||
<div class="field-grid four">
|
<div class="card-title">{{ t('pages.settings.logAndDisplay') }}</div>
|
||||||
<n-form-item :label="t('pages.settings.backupEnabled')">
|
<div class="setting-row">
|
||||||
<div class="switch-field"><n-switch v-model:value="form.backupEnabled" /></div>
|
<n-form-item :label="t('pages.settings.logRetentionDays')">
|
||||||
|
<n-input-number v-model:value="form.logRetentionDays" :min="1" button-placement="both" class="number-control" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
|
<n-form-item :label="t('pages.settings.operationLogRetentionDays')">
|
||||||
|
<n-input-number v-model:value="form.operationLogRetentionDays" :min="1" button-placement="both" class="number-control" />
|
||||||
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="settings-card">
|
||||||
|
<div class="card-title">{{ t('pages.settings.backupPolicy') }}</div>
|
||||||
|
<div class="setting-row">
|
||||||
<n-form-item :label="t('pages.settings.backupSchedule')">
|
<n-form-item :label="t('pages.settings.backupSchedule')">
|
||||||
<n-select v-model:value="form.backupSchedule" :options="backupScheduleOptions" class="control-short" />
|
<n-select v-model:value="backupScheduleValue" :options="backupScheduleOptions" class="select-control" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
<n-form-item :label="t('pages.settings.backupRetentionDays')">
|
<n-form-item :label="t('pages.settings.backupRetentionDays')">
|
||||||
<n-input-number v-model:value="form.backupRetentionDays" :min="1" class="control-short" />
|
<n-input-number v-model:value="form.backupRetentionDays" :min="1" button-placement="both" class="number-control" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="setting-row">
|
||||||
<n-form-item :label="t('pages.settings.backupRetentionCount')">
|
<n-form-item :label="t('pages.settings.backupRetentionCount')">
|
||||||
<n-input-number v-model:value="form.backupRetentionCount" :min="1" class="control-short" />
|
<n-input-number v-model:value="form.backupRetentionCount" :min="1" button-placement="both" class="number-control" />
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
<div class="form-actions">
|
|
||||||
<n-button type="primary" :loading="saving" @click="save">{{ t('common.action.save') }}</n-button>
|
|
||||||
</div>
|
</div>
|
||||||
</n-form>
|
</n-form>
|
||||||
</div>
|
|
||||||
</n-tab-pane>
|
|
||||||
|
|
||||||
<n-tab-pane name="backup" :tab="t('pages.backup.title')">
|
<div class="settings-backup-panel">
|
||||||
<div class="settings-backup-pane">
|
|
||||||
<backup-restore-panel />
|
<backup-restore-panel />
|
||||||
</div>
|
</div>
|
||||||
</n-tab-pane>
|
</div>
|
||||||
</n-tabs>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -97,10 +105,18 @@ import { DEFAULT_APP_ICON_URL, resolveAppIcon, setFavicon } from '@/utils/appIco
|
|||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const saving = ref(false);
|
const saving = ref(false);
|
||||||
const backupScheduleOptions = [
|
const backupScheduleOptions = computed(() => [
|
||||||
|
{ label: t('pages.settings.scheduleOff'), value: 'off' },
|
||||||
{ label: t('pages.settings.scheduleDaily'), value: 'daily' },
|
{ label: t('pages.settings.scheduleDaily'), value: 'daily' },
|
||||||
{ label: t('pages.settings.scheduleWeekly'), value: 'weekly' },
|
{ label: t('pages.settings.scheduleWeekly'), value: 'weekly' },
|
||||||
];
|
]);
|
||||||
|
const backupScheduleValue = computed({
|
||||||
|
get: () => (form.backupEnabled ? form.backupSchedule : 'off'),
|
||||||
|
set: (value: string) => {
|
||||||
|
form.backupEnabled = value !== 'off';
|
||||||
|
if (value !== 'off') form.backupSchedule = value;
|
||||||
|
},
|
||||||
|
});
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
appName: '',
|
appName: '',
|
||||||
appIconFiles: [] as Array<{ key: string; url?: string; name?: string; type?: string }>,
|
appIconFiles: [] as Array<{ key: string; url?: string; name?: string; type?: string }>,
|
||||||
@@ -168,9 +184,10 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 16px;
|
padding: 14px 16px 16px;
|
||||||
}
|
}
|
||||||
.settings-shell {
|
.settings-shell {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -178,106 +195,175 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.settings-tabs {
|
.settings-save {
|
||||||
flex: 1 1 auto;
|
position: absolute;
|
||||||
width: 100%;
|
top: 0;
|
||||||
min-height: 0;
|
right: 10px;
|
||||||
display: flex;
|
z-index: 8;
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
.settings-tabs :deep(.n-tabs-pane-wrapper) {
|
.settings-content {
|
||||||
flex: 1 1 auto;
|
|
||||||
min-height: 0;
|
|
||||||
padding-top: 12px;
|
|
||||||
}
|
|
||||||
.settings-tabs :deep(.n-tab-pane) {
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
|
||||||
.settings-base-pane {
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding-right: 8px;
|
padding: 0 10px 24px 0;
|
||||||
}
|
|
||||||
.settings-backup-pane {
|
|
||||||
height: 100%;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
}
|
||||||
.settings-form {
|
.settings-form {
|
||||||
width: min(980px, 100%);
|
width: min(1060px, 100%);
|
||||||
}
|
}
|
||||||
.settings-section {
|
.settings-card-grid {
|
||||||
padding: 16px 0 10px;
|
display: grid;
|
||||||
|
grid-template-columns: minmax(420px, 1fr) minmax(360px, 420px);
|
||||||
|
align-items: start;
|
||||||
|
gap: 12px;
|
||||||
|
padding-right: 84px;
|
||||||
|
}
|
||||||
|
.settings-side-stack {
|
||||||
|
display: grid;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
.settings-card {
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid var(--n-border-color);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--n-card-color);
|
||||||
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||||
|
}
|
||||||
|
.card-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 36px;
|
||||||
|
padding: 0 12px;
|
||||||
|
border-bottom: 1px solid var(--n-border-color);
|
||||||
|
background: rgba(148, 163, 184, 0.08);
|
||||||
|
color: var(--n-text-color);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
.setting-row {
|
||||||
|
padding: 8px 12px;
|
||||||
border-bottom: 1px solid var(--n-border-color);
|
border-bottom: 1px solid var(--n-border-color);
|
||||||
}
|
}
|
||||||
.section-title {
|
.setting-row:last-child {
|
||||||
font-size: 15px;
|
border-bottom: 0;
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
}
|
||||||
.field-grid {
|
.settings-form :deep(.n-form-item) {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 12px 20px;
|
grid-template-columns: 108px minmax(0, 1fr);
|
||||||
align-items: start;
|
grid-template-rows: auto;
|
||||||
|
grid-template-areas: "label blank";
|
||||||
|
align-items: center;
|
||||||
|
column-gap: 12px;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.field-grid.two {
|
.settings-form :deep(.n-form-item-label) {
|
||||||
grid-template-columns: repeat(2, minmax(280px, 1fr));
|
min-height: auto;
|
||||||
|
padding: 0;
|
||||||
|
color: var(--n-text-color-2);
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 20px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.field-grid.three {
|
.settings-form :deep(.n-form-item-blank) {
|
||||||
grid-template-columns: repeat(3, minmax(180px, 1fr));
|
min-height: 32px;
|
||||||
}
|
}
|
||||||
.field-grid.four {
|
.setting-row :deep(.n-form-item-feedback-wrapper) {
|
||||||
grid-template-columns: repeat(4, minmax(150px, 1fr));
|
display: none;
|
||||||
}
|
}
|
||||||
.control-wide {
|
.control-wide {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.control-short {
|
.number-control {
|
||||||
width: 100%;
|
width: 132px;
|
||||||
}
|
}
|
||||||
.field-stack {
|
.number-control :deep(.n-input__input-el) {
|
||||||
width: 100%;
|
text-align: center;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 4px;
|
|
||||||
}
|
}
|
||||||
.field-tip {
|
.select-control {
|
||||||
max-width: 320px;
|
width: 160px;
|
||||||
font-size: 12px;
|
}
|
||||||
color: #999;
|
.setting-label {
|
||||||
|
color: var(--n-text-color-2);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.icon-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 108px minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
column-gap: 12px;
|
||||||
}
|
}
|
||||||
.icon-setting {
|
.icon-setting {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 60px minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.icon-preview-wrap {
|
||||||
|
width: 60px;
|
||||||
|
min-height: 60px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--n-border-color);
|
||||||
|
background: var(--n-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 14px;
|
justify-content: center;
|
||||||
}
|
|
||||||
.icon-preview {
|
|
||||||
width: 52px;
|
|
||||||
height: 52px;
|
|
||||||
border-radius: 12px;
|
|
||||||
border: 1px solid var(--n-border-color);
|
|
||||||
object-fit: cover;
|
|
||||||
background: #f6f8fb;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.switch-field {
|
.icon-preview {
|
||||||
display: flex;
|
width: 42px;
|
||||||
align-items: center;
|
height: 42px;
|
||||||
height: 34px;
|
border-radius: 10px;
|
||||||
|
object-fit: cover;
|
||||||
|
background: var(--n-color);
|
||||||
}
|
}
|
||||||
.form-actions {
|
.icon-upload {
|
||||||
display: flex;
|
min-width: 0;
|
||||||
justify-content: flex-start;
|
}
|
||||||
padding-top: 18px;
|
.icon-upload :deep(.image-grid) {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.icon-upload :deep(.image-item) {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
.icon-upload :deep(.image-item.add span) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.settings-backup-panel {
|
||||||
|
width: min(1060px, 100%);
|
||||||
|
height: 430px;
|
||||||
|
min-height: 360px;
|
||||||
|
margin-top: 12px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--n-border-color);
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--n-card-color);
|
||||||
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||||
}
|
}
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
.settings-shell {
|
.settings-shell {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.field-grid.two,
|
.settings-card-grid {
|
||||||
.field-grid.three,
|
|
||||||
.field-grid.four {
|
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-top: 46px;
|
||||||
|
}
|
||||||
|
.icon-setting {
|
||||||
|
grid-template-columns: 60px minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.settings-form :deep(.n-form-item),
|
||||||
|
.icon-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
row-gap: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user