fix: 修复系统设置双滚动条

This commit is contained in:
Nixevol
2026-07-05 16:41:08 +08:00
parent 7ac43cf96b
commit ddf40b2995
5 changed files with 18 additions and 12 deletions
+9 -6
View File
@@ -180,7 +180,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
<style scoped>
.settings-page {
height: var(--admin-content-height);
min-height: calc(var(--admin-min-height) - var(--admin-header-height) - var(--admin-footer-height));
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
@@ -205,6 +205,7 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
flex-direction: column;
height: 100%;
min-height: 0;
gap: 12px;
overflow: auto;
padding: 0 10px 24px 0;
}
@@ -350,10 +351,11 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
display: none;
}
.settings-backup-panel {
flex: 0 0 auto;
flex: 1 1 320px;
display: flex;
flex-direction: column;
width: 100%;
min-height: 320px;
margin-top: 12px;
padding: 12px;
box-sizing: border-box;
border: 1px solid var(--n-border-color);
@@ -361,6 +363,10 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
background: var(--n-card-color);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.settings-backup-panel :deep(.backup-panel) {
flex: 1 1 auto;
min-height: 0;
}
@media (max-width: 900px) {
.settings-shell {
min-width: 0;
@@ -376,9 +382,6 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
}
}
@media (max-width: 640px) {
.settings-content {
overflow: auto;
}
.settings-form :deep(.n-form-item),
.icon-row {
grid-template-columns: 1fr;