Skip to content

Commit 4b6eb46

Browse files
Fix double border in system status table (#31363)
Fix regression from #30712 where the introduction of this `<div>` caused the `.ui.attached:not(.message) + .ui.attached.segment:not(.top)` CSS selector to no longer work and cause a double border. Before: <img width="200" alt="Screenshot 2024-06-13 at 19 06 12" src="https://github.com/go-gitea/gitea/assets/115237/a9fa0688-adf0-4b2d-a958-6a7679a62031"> After: <img width="232" alt="Screenshot 2024-06-13 at 19 05 57" src="https://github.com/go-gitea/gitea/assets/115237/025b780f-f72f-4049-86de-a5d84851bd1d"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 0f09c22 commit 4b6eb46

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/admin/dashboard.tmpl

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@
7676
{{ctx.Locale.Tr "admin.dashboard.system_status"}}
7777
</h4>
7878
{{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}}
79-
<div class="no-loading-indicator tw-hidden"></div>
80-
<div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator" class="ui attached table segment">
81-
{{template "admin/system_status" .}}
79+
<div class="ui attached table segment">
80+
<div class="no-loading-indicator tw-hidden"></div>
81+
<div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator">
82+
{{template "admin/system_status" .}}
83+
</div>
8284
</div>
8385
</div>
8486
{{template "admin/layout_footer" .}}

0 commit comments

Comments
 (0)