mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-19 03:00:49 +08:00
fix(config): optimize layout for full height
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pageTitle {
|
.pageTitle {
|
||||||
@@ -21,6 +25,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $spacing-lg;
|
gap: $spacing-lg;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchInputWrapper {
|
.searchInputWrapper {
|
||||||
@@ -127,7 +133,8 @@
|
|||||||
|
|
||||||
.editorWrapper {
|
.editorWrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
flex: 1;
|
||||||
|
min-height: 200px;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: $radius-lg;
|
border-radius: $radius-lg;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -206,6 +213,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.configCard {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: $spacing-sm;
|
gap: $spacing-sm;
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ export function ConfigPage() {
|
|||||||
<h1 className={styles.pageTitle}>{t('config_management.title')}</h1>
|
<h1 className={styles.pageTitle}>{t('config_management.title')}</h1>
|
||||||
<p className={styles.description}>{t('config_management.description')}</p>
|
<p className={styles.description}>{t('config_management.description')}</p>
|
||||||
|
|
||||||
<Card>
|
<Card className={styles.configCard}>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
{/* Editor */}
|
{/* Editor */}
|
||||||
{error && <div className="error-box">{error}</div>}
|
{error && <div className="error-box">{error}</div>}
|
||||||
|
|||||||
Reference in New Issue
Block a user