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.

message_overlay: Prevent grid blowouts on messagebox content.

Karl Stolleyb54af44a7e1a
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 1b8ddee31df..48e3d2de8ef 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -923,10 +923,13 @@ input.settings_text_input {
}
.messagebox-content {
- grid-template: auto / auto max-content;
- grid-template-areas:
- "message controls"
- "message . ";
+ /* The min-content effectively cinches to the
+ height of the per-draft controls, while the
+ second row accommodates the full message. */
+ grid-template:
+ "message controls" min-content
+ "message . " minmax(0, 1fr)
+ / minmax(0, 1fr) max-content;
/* to space from restore draft button */
column-gap: 5px;
padding: 10px;