Skip to content

Commit e2173d0

Browse files
author
Taois
committed
feat: 页面样式及布局调优
1 parent 1e083f2 commit e2173d0

11 files changed

Lines changed: 1192 additions & 373 deletions

dashboard/src/components/BackupRestoreDialog.vue

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
title="数据备份还原"
55
width="min(520px, calc(100vw - 24px))"
66
:footer="false"
7+
modal-class="backup-restore-dialog"
78
@cancel="handleCancel"
89
>
910
<div class="backup-restore-container">
@@ -393,6 +394,27 @@ onMounted(() => {
393394
})
394395
</script>
395396

397+
<style>
398+
.backup-restore-dialog .arco-modal-body {
399+
overflow: hidden;
400+
}
401+
402+
@media (max-width: 768px) {
403+
.backup-restore-dialog {
404+
width: calc(100vw - 24px) !important;
405+
}
406+
407+
.backup-restore-dialog .arco-modal-header {
408+
padding: 12px 14px;
409+
}
410+
411+
.backup-restore-dialog .arco-modal-body {
412+
max-height: min(72vh, calc(100vh - 150px));
413+
padding: 10px 12px;
414+
}
415+
}
416+
</style>
417+
396418
<style scoped>
397419
.backup-restore-container {
398420
padding: 4px 0; /* 进一步减少容器内边距 */
@@ -599,6 +621,10 @@ onMounted(() => {
599621
600622
.backup-restore-container {
601623
min-width: 0;
624+
max-height: 100%;
625+
overflow-y: auto;
626+
overflow-x: hidden;
627+
padding-right: 2px;
602628
}
603629
604630
.stats-section,
@@ -679,19 +705,51 @@ onMounted(() => {
679705
@media (max-width: 560px) {
680706
.stats-section,
681707
.operation-section {
682-
padding: 10px;
708+
padding: 8px;
709+
margin-bottom: 8px;
683710
}
684711
685712
.stats-grid {
686-
grid-template-columns: repeat(2, minmax(0, 1fr));
713+
grid-template-columns: repeat(5, minmax(0, 1fr));
714+
gap: 4px;
687715
}
688716
689-
.section-title {
717+
.stat-item {
718+
padding: 6px 2px;
719+
}
720+
721+
.stat-value {
690722
font-size: 15px;
691723
}
692724
725+
.stat-label {
726+
font-size: 10px;
727+
}
728+
729+
.section-title {
730+
font-size: 14px;
731+
margin-bottom: 6px;
732+
}
733+
734+
.operation-content {
735+
padding: 8px;
736+
}
737+
693738
.operation-desc {
739+
margin-bottom: 8px;
694740
font-size: 12px;
695741
}
742+
743+
.warning-section {
744+
margin-top: 8px;
745+
}
746+
747+
.warning-section :deep(.arco-alert-content) {
748+
font-size: 12px;
749+
}
750+
751+
.warning-list {
752+
padding-left: 14px;
753+
}
696754
}
697755
</style>

0 commit comments

Comments
 (0)