diff options
author | silverwind <me@silverwind.io> | 2024-06-17 15:21:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 15:21:59 +0200 |
commit | 4b6eb46e69e460ad81e61f67e468a0f365cbd6a6 (patch) | |
tree | 097be07bca6bff27fbc27f0eb6f2e84db29b17df /templates | |
parent | 0f09c22663909cca5a386ba563cadaef09bd7846 (diff) | |
download | gitea-4b6eb46e69e460ad81e61f67e468a0f365cbd6a6.tar.gz gitea-4b6eb46e69e460ad81e61f67e468a0f365cbd6a6.zip |
Fix double border in system status table (#31363)
Fix regression from https://github.com/go-gitea/gitea/pull/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>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/dashboard.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 3445433d53..2f9875f0d9 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -76,9 +76,11 @@ {{ctx.Locale.Tr "admin.dashboard.system_status"}} </h4> {{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}} - <div class="no-loading-indicator tw-hidden"></div> - <div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator" class="ui attached table segment"> - {{template "admin/system_status" .}} + <div class="ui attached table segment"> + <div class="no-loading-indicator tw-hidden"></div> + <div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".no-loading-indicator"> + {{template "admin/system_status" .}} + </div> </div> </div> {{template "admin/layout_footer" .}} |