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.

modals: Structure heading as grid to allow line wrapping.

Karl Stolleya81bb51a821a
diff --git a/web/styles/modal.css b/web/styles/modal.css
index aef22948698..f773c411602 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -30,10 +30,14 @@
}
.modal__header {
- padding: 16px 24px;
- display: flex;
- justify-content: space-between;
- align-items: center;
+ padding: 16px 16px 16px 24px;
+ display: grid;
+ /* 25px at 16px/1em = 1.6667
+ 29px at 16px/1em = 1.8125 */
+ grid-template:
+ "heading close-button" 1.6667em "heading ." auto / minmax(0, 1fr)
+ 1.8125em;
+ grid-column-gap: 4px;
}
.modal__footer {
@@ -100,7 +104,6 @@
&::before {
content: "\2715";
}
- margin-right: -4px;
background: transparent;
border: 0;
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 016f019caa8..8bfcb161899 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -918,8 +918,8 @@ ul.popover-group-menu-member-list {
}
.modal__title {
- white-space: nowrap;
- text-overflow: ellipsis;
+ /* Grid defined in modal.css */
+ grid-area: heading;
.stream-privacy-type-icon {
padding-left: 3px;