From dd2aaadce3ecd3134a1ba0c82c5aaa05d6c11b2b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 23 Apr 2024 16:31:51 +0800 Subject: [PATCH] Fix flash message for flex-container (#30657) --- templates/admin/layout_head.tmpl | 4 +--- templates/user/dashboard/dashboard.tmpl | 2 +- web_src/css/base.css | 6 ------ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/templates/admin/layout_head.tmpl b/templates/admin/layout_head.tmpl index c1f5fb331..7cc6624d5 100644 --- a/templates/admin/layout_head.tmpl +++ b/templates/admin/layout_head.tmpl @@ -1,11 +1,9 @@ {{template "base/head" .ctxData}}
-
- {{template "base/alert" .ctxData}} -
{{template "admin/navbar" .ctxData}}
+ {{template "base/alert" .ctxData}} {{/* block: admin-setting-content */}} {{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}} diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 415423d43..5dc46dc0a 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -1,9 +1,9 @@ {{template "base/head" .}}
{{template "user/dashboard/navbar" .}} - {{template "base/alert" .}}
+ {{template "base/alert" .}} {{template "user/heatmap" .}} {{template "user/dashboard/feeds" .}}
diff --git a/web_src/css/base.css b/web_src/css/base.css index 35f178186..58a5723cb 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -495,12 +495,6 @@ img.ui.avatar, margin-top: calc(var(--page-spacing) - 1rem); } -/* add horizontal margin to elements that are outside top-level of .flex-container or .ui.container */ -.page-content > .flash-message { - margin-left: var(--page-margin-x); - margin-right: var(--page-margin-x); -} - .ui.form .fields.error .field textarea, .ui.form .fields.error .field select, .ui.form .fields.error .field input:not([type]),