Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_lists: Present gridded list items.
Karl Stolleyfce8b57e278b
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex fe1a3ba1cfd..5853385b304 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -1901,8 +1901,6 @@ textarea.new_message_textarea {.dropdown-list .dropdown-list-item-common-styles {padding: 0.3571em 0.7143em; /* 5px 10px at 14px/em */- display: flex;- flex-direction: column;/* Make content appear more distinct fromthe snippet name. */border-bottom: solid 1px var(--color-border-popover-menu-separator);diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 667a32eaea3..22bedcdc624 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -2190,8 +2190,13 @@ body:not(.spectator-view) {}.dropdown-list .dropdown-list-item-common-styles {- position: relative;- display: flex;+ display: grid;+ grid-template:+ "privacy-icon item-label " min-content+ "item-description item-description" minmax(0, min-content) / minmax(+ 0,+ auto+ ) minmax(0, 1fr);color: var(--color-dropdown-item);padding: 3px 10px 3px 8px;font-weight: 400;@@ -2202,6 +2207,7 @@ body:not(.spectator-view) {line-height: 1.214;.channel-privacy-type-icon {+ grid-area: privacy-icon;line-height: 1.214;font-size: 0.93em;/* We set only the width so that flexbox@@ -2218,16 +2224,34 @@ body:not(.spectator-view) {top: 0.05em;}- .dropdown-list-delete,- .dropdown-list-edit {- position: absolute;- top: 0;- right: 5px;- visibility: hidden;+ .decorated-channel-name {+ grid-area: item-label;+ }++ .dropdown-list-item-description {+ grid-area: item-description;}- .dropdown-list-edit {- right: 30px;+ .dropdown-list-item-name {+ grid-area: item-label;+ display: grid;+ grid-template: "item-text item-buttons" minmax(0, auto)+ "item-text . " minmax(0, auto) / minmax(+ 0,+ 1fr+ ) minmax(0, auto);+ align-items: center;+ }++ .dropdown-list-text-neutral {+ grid-area: item-text;+ align-self: center;+ }++ .dropdown-list-buttons {+ grid-area: item-buttons;+ display: flex;+ visibility: hidden;}&:focus,