Skip to content

Commit 1b1b850

Browse files
authored
Fix flash on dashboard (#30572)
Fixes #30566, regression from #30214.
1 parent 9de443c commit 1b1b850

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

templates/user/dashboard/dashboard.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content dashboard feeds">
33
{{template "user/dashboard/navbar" .}}
4+
{{template "base/alert" .}}
45
<div class="ui container flex-container">
5-
{{template "base/alert" .}}
66
<div class="flex-container-main">
77
{{template "user/heatmap" .}}
88
{{template "user/dashboard/feeds" .}}

web_src/css/base.css

+6
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,12 @@ img.ui.avatar,
501501
margin-top: calc(var(--page-spacing) - 1rem);
502502
}
503503

504+
/* add horizontal margin to elements that are outside top-level of .flex-container or .ui.container */
505+
.page-content > .flash-message {
506+
margin-left: var(--page-margin-x);
507+
margin-right: var(--page-margin-x);
508+
}
509+
504510
.ui.form .fields.error .field textarea,
505511
.ui.form .fields.error .field select,
506512
.ui.form .fields.error .field input:not([type]),

0 commit comments

Comments
 (0)