fix(config): optimize layout for full height

This commit is contained in:
hkfires
2025-12-24 12:45:30 +08:00
parent 2a94be08fa
commit 40fe33aeae
2 changed files with 17 additions and 2 deletions

View File

@@ -2,6 +2,10 @@
.container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
.pageTitle {
@@ -21,6 +25,8 @@
display: flex;
flex-direction: column;
gap: $spacing-lg;
flex: 1;
min-height: 0;
}
.searchInputWrapper {
@@ -127,7 +133,8 @@
.editorWrapper {
width: 100%;
height: 500px;
flex: 1;
min-height: 200px;
border: 1px solid var(--border-color);
border-radius: $radius-lg;
overflow: hidden;
@@ -206,6 +213,14 @@
}
}
.configCard {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
.actions {
display: flex;
gap: $spacing-sm;

View File

@@ -224,7 +224,7 @@ export function ConfigPage() {
<h1 className={styles.pageTitle}>{t('config_management.title')}</h1>
<p className={styles.description}>{t('config_management.description')}</p>
<Card>
<Card className={styles.configCard}>
<div className={styles.content}>
{/* Editor */}
{error && <div className="error-box">{error}</div>}