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
@@ -23,7 +23,6 @@
:loading="loading"
:pagination="false"
class="table-fill backup-table"
flex-height
remote
:scroll-x="1320"
:row-key="(r) => r.id"
@@ -219,7 +218,7 @@ onMounted(load);
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
overflow: visible;
}
.backup-toolbar {
position: sticky;
+4 -3
View File
@@ -204,7 +204,8 @@ onUnmounted(() => {
}
.admin-layout {
min-width: var(--admin-min-width);
min-height: var(--admin-min-height);
height: 100vh;
min-height: 0;
}
.admin-main {
min-width: 0;
@@ -225,8 +226,8 @@ onUnmounted(() => {
flex: 1 1 auto;
}
.content {
height: calc(max(100vh, var(--admin-min-height)) - var(--admin-header-height) - var(--admin-footer-height));
min-height: calc(var(--admin-min-height) - var(--admin-header-height) - var(--admin-footer-height));
height: var(--admin-content-height);
min-height: 0;
}
.footer {
height: var(--admin-footer-height);
+3 -1
View File
@@ -7,7 +7,7 @@
--admin-footer-height: 32px;
--admin-min-width: 1120px;
--admin-min-height: 680px;
--admin-content-height: calc(max(100vh, var(--admin-min-height)) - var(--admin-header-height) - var(--admin-footer-height));
--admin-content-height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
}
* {
box-sizing: border-box;
@@ -18,6 +18,8 @@ body,
margin: 0;
padding: 0;
height: 100%;
overflow-y: hidden;
overflow-x: auto;
font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, sans-serif;
}
+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;