Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

alert_box: Maintain alert-box position despite scrolling.

Karl Stolleye54f920549fa
diff --git a/web/styles/alerts.css b/web/styles/alerts.css
index c42dbef4393..267fc0d7761 100644
--- a/web/styles/alerts.css
+++ b/web/styles/alerts.css
@@ -29,7 +29,10 @@ $alert-error-red: hsl(0deg 80% 40%);
/* alert box component changes */
.alert-box {
- position: absolute;
+ /* Ensure alert box remains in viewport,
+ regardless of scroll position in message
+ list. */
+ position: fixed;
top: 0;
left: 0;
width: 900px;