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.

popover: Fix too wide popup on narrow viewport.

Therese Selberge5c0d0648129
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index d133d2120ef..752e3e77b3c 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -298,16 +298,23 @@ p.n-margin {
}
}
-#feedback_container {
- display: none;
+#feedback-container-content-wrapper {
position: fixed;
+ left: 50%;
+ transform: translateX(-50%);
width: 400px;
- top: 0;
- left: calc(50vw - 220px);
+ max-width: calc(100% - 20px);
padding: 15px;
background-color: var(--color-background-modal);
border-radius: 5px;
box-shadow: 0 0 30px hsl(0deg 0% 0% / 25%);
+ box-sizing: border-box;
+}
+
+#feedback_container {
+ display: none;
+ position: fixed;
+ width: 100%;
z-index: 110;
@container app (width < $cq_md_min) {
diff --git a/web/templates/feedback_container.hbs b/web/templates/feedback_container.hbs
index 41bf80a03e6..ccc6445b0a6 100644
--- a/web/templates/feedback_container.hbs
+++ b/web/templates/feedback_container.hbs
@@ -1,11 +1,13 @@
-<div class="float-header">
- <h3 class="light no-margin small-line-height float-left feedback_title"></h3>
- <div class="feedback-button-container">
- {{#if has_undo_button}}
- {{> components/action_button intent="neutral" attention="quiet" custom_classes="feedback_undo"}}
- {{/if}}
- {{> ./components/icon_button intent="neutral" custom_classes="exit-me" icon="close"}}
+<div id="feedback-container-content-wrapper">
+ <div class="float-header">
+ <h3 class="light no-margin small-line-height float-left feedback_title"></h3>
+ <div class="feedback-button-container">
+ {{#if has_undo_button}}
+ {{> components/action_button intent="neutral" attention="quiet" custom_classes="feedback_undo"}}
+ {{/if}}
+ {{> ./components/icon_button intent="neutral" custom_classes="exit-me" icon="close"}}
+ </div>
+ <div class="float-clear"></div>
</div>
- <div class="float-clear"></div>
+ <p class="n-margin feedback_content"></p>
</div>
-<p class="n-margin feedback_content"></p>