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_overlays: Apply grid to drafts and scheduled messages.

Karl Stolley0058cc5f9229
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index fd0215f4c71..e6d96e583ad 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -948,19 +948,21 @@ div.overlay {
}
.messagebox-content {
- grid-template-rows: auto;
- grid-template-columns: auto max-content;
+ grid-template: auto / auto max-content;
+ grid-template-areas:
+ "message controls"
+ "message . ";
+ /* to space from restore draft button */
+ column-gap: 5px;
padding: 10px;
.message_content {
cursor: pointer;
- grid-column: 1 / 2;
- /* to space from restore draft button */
- margin-right: 5px;
+ grid-area: message;
}
.message_top_line {
- grid-column: 2 / 3;
+ grid-area: controls;
}
}
diff --git a/web/styles/drafts.css b/web/styles/drafts.css
index 3b4038bb2f3..7e639bbe170 100644
--- a/web/styles/drafts.css
+++ b/web/styles/drafts.css
@@ -39,22 +39,6 @@
border-top: 0;
}
- .messagebox-content {
- grid-template-rows: auto;
- grid-template-columns: auto max-content;
- padding: 10px;
-
- .message_content {
- grid-column: 1 / 2;
- /* to space from restore draft button */
- margin-right: 5px;
- }
-
- .message_top_line {
- grid-column: 2 / 3;
- }
- }
-
.messagebox {
cursor: auto;
box-shadow: none;