Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

have notification box visible when modal is displayed

ulferts1dcff390fcd1
diff --git a/app/assets/stylesheets/content/_notifications.sass b/app/assets/stylesheets/content/_notifications.sass
index 24b72bc53e8..74499bbfd29 100644
--- a/app/assets/stylesheets/content/_notifications.sass
+++ b/app/assets/stylesheets/content/_notifications.sass
@@ -202,13 +202,17 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)
right: 10%
.notification-box--wrapper
- z-index: 901 // Higher than loading indicator!
+ z-index: 10000 // Higher than loading indicator and modal wrapper!
+ top: 4rem
.notification-box--casing
position: relative
.notification-box
margin-bottom: rem-calc(3px)
+.flash, #errorExplanation
+ top: 1rem
+
// awesome animations
.notification-box
&.ng-enter
@@ -356,11 +360,6 @@ a.notification-box--target-link
cursor: pointer
text-decoration: underline
-.flash,
-#errorExplanation,
-.notification-box--wrapper
- top: 1rem
-
#errorExplanation
@extend %error-placeholder
top: rem-calc(68px)
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index 0c52dc09c66..e1c31ba72c6 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -118,6 +118,7 @@ See docs/COPYRIGHT.rdoc for more details.
</p>
</div>
</noscript>
+<notifications-container></notifications-container>
<% main_menu = render_main_menu(local_assigns.fetch(:menu_name, nil), @project) %>
<% side_displayed = content_for?(:sidebar) || content_for?(:main_menu) || !main_menu.blank? %>
<% initial_classes = initial_menu_classes(side_displayed, show_decoration) %>
@@ -175,7 +176,6 @@ See docs/COPYRIGHT.rdoc for more details.
</div>
<% end %>
<%= render_flash_messages %>
- <notifications-container></notifications-container>
<% if show_onboarding_modal? %>
<section data-augmented-model-wrapper
data-modal-initialize-now="true"