style: 存储卡片改名存储配置,说明改为标题旁信息图标悬浮提示
- 系统设置「存储与 CDN」改为「存储配置」 - 移除常驻说明条,改为标题右侧信息图标 hover 弹出完整说明,节省空间
This commit is contained in:
@@ -120,14 +120,21 @@
|
||||
|
||||
<section class="settings-card storage-card">
|
||||
<div class="card-title">
|
||||
<span>{{ t('pages.settings.storageSettings') }}</span>
|
||||
<span class="card-title-text">
|
||||
{{ t('pages.settings.storageSettings') }}
|
||||
<n-popover trigger="hover" placement="bottom-start" :style="{ maxWidth: '340px' }">
|
||||
<template #trigger>
|
||||
<n-icon class="hint-icon" :component="HelpCircleOutline" />
|
||||
</template>
|
||||
<span class="hint-popover">{{ t('pages.settings.storageHint') }}</span>
|
||||
</n-popover>
|
||||
</span>
|
||||
<div class="card-actions">
|
||||
<n-button size="small" :loading="testingStorage" @click="testStorage">{{ t('pages.settings.testStorage') }}</n-button>
|
||||
<n-button size="small" :loading="migratingStorage" @click="migrateStorage">{{ t('pages.settings.migrateStorage') }}</n-button>
|
||||
<n-button size="small" type="primary" :loading="confirmingStorage" @click="confirmStorage">{{ t('pages.settings.confirmStorage') }}</n-button>
|
||||
</div>
|
||||
</div>
|
||||
<n-alert type="info" :show-icon="false" class="storage-hint">{{ t('pages.settings.storageHint') }}</n-alert>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.storageDriver')">
|
||||
<n-select v-model:value="form.storageDriver" :options="storageDriverOptions" class="select-control" />
|
||||
@@ -187,6 +194,7 @@ import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { settingsApi, storageApi } from '@/api';
|
||||
import { message } from '@/utils/feedback';
|
||||
import { HelpCircleOutline } from '@vicons/ionicons5';
|
||||
import BackupRestorePanel from '@/components/BackupRestorePanel.vue';
|
||||
import MediaUpload from '@/components/MediaUpload.vue';
|
||||
import { DEFAULT_APP_ICON_URL, resolveAppIcon, setFavicon } from '@/utils/appIcon';
|
||||
@@ -450,8 +458,23 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.storage-hint {
|
||||
margin: 0 12px 8px;
|
||||
.card-title-text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.hint-icon {
|
||||
color: var(--n-text-color-3, #8a94a6);
|
||||
font-size: 16px;
|
||||
cursor: help;
|
||||
}
|
||||
.hint-icon:hover {
|
||||
color: var(--brand, #2f9e8f);
|
||||
}
|
||||
.hint-popover {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.setting-row {
|
||||
padding: 8px 12px;
|
||||
|
||||
Reference in New Issue
Block a user