fix(logs): keep loading state below filters (#802)

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
ekko
2026-05-16 22:49:09 +08:00
committed by GitHub
parent f2c8ace7c2
commit 569ddc28da
+12 -1
View File
@@ -120,7 +120,7 @@ onMounted(async () => {
</header>
<div class="logs-body">
<NSpin :show="loading">
<NSpin :show="loading" class="logs-spin">
<div v-if="filteredEntries.length === 0 && !loading" class="logs-empty">
{{ t('logs.noEntries') }}
</div>
@@ -191,6 +191,16 @@ onMounted(async () => {
min-height: 0;
}
.logs-spin {
min-height: 100%;
display: block;
:deep(.n-spin-container),
:deep(.n-spin-content) {
min-height: 100%;
}
}
.logs-empty {
display: flex;
align-items: center;
@@ -202,6 +212,7 @@ onMounted(async () => {
.log-list {
padding: 4px 0;
min-height: 100%;
}
.log-entry {