mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-02 19:00:49 +08:00
fix(logs): make error log panel scrollable
This commit is contained in:
@@ -170,6 +170,13 @@
|
|||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.errorPanel {
|
||||||
|
height: 480px;
|
||||||
|
overflow: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overscroll-behavior: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.loadMoreBanner {
|
.loadMoreBanner {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -397,4 +404,8 @@
|
|||||||
.logPanel {
|
.logPanel {
|
||||||
height: 360px;
|
height: 360px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.errorPanel {
|
||||||
|
height: 360px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -882,6 +882,7 @@ export function LogsPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<div className={styles.errorPanel}>
|
||||||
{errorLogs.length === 0 ? (
|
{errorLogs.length === 0 ? (
|
||||||
<div className="hint">{t('logs.error_logs_empty')}</div>
|
<div className="hint">{t('logs.error_logs_empty')}</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -908,6 +909,7 @@ export function LogsPage() {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user