fix(logs): make error log panel scrollable

This commit is contained in:
Supra4E8C
2025-12-26 17:52:23 +08:00
parent 46701b40ad
commit ea1bdc3ac1
2 changed files with 37 additions and 24 deletions

View File

@@ -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;
}
} }

View File

@@ -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>