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