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.

dropdown_widget: Fix "None" row height in channel-folder selector.

Tuan Dinhc9c9d67a887d
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 084b5e1a43a..bc2fc02b18a 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2244,28 +2244,6 @@ body:not(.spectator-view) {
}
}
- &.folder_id-dropdown-list-container {
- width: calc(var(--modal-input-width) * 0.75);
-
- /* Alignment adjustments on channel-folder selector. */
- .dropdown-list-item-name:has(.dropdown-list-buttons) {
- /* We hold the first row height to 28px at 16px/1em
- for the sake of the buttons plus their padding. */
- grid-template-rows: 1.75em minmax(0, auto);
- /* We also align everything to start, so that we can
- offset the text from the top to align it with the
- buttons. */
- align-items: start;
-
- .dropdown-list-text-neutral {
- /* 0.2em is an eyeballed value that keeps the buttons
- well aligned with the first/only line of text. */
- padding-top: 0.2em;
- align-self: start;
- }
- }
- }
-
.no-dropdown-items {
color: hsl(0deg 0% 60%);
display: none;
@@ -2419,6 +2397,31 @@ body:not(.spectator-view) {
}
}
}
+
+ &.folder_id-dropdown-list-container {
+ width: calc(var(--modal-input-width) * 0.75);
+
+ /* Alignment adjustments on the channel-folder selector. */
+ .dropdown-list .dropdown-list-item-name {
+ /* We hold the first row height to 28px at 16px/1em
+ for the sake of the buttons plus their padding.
+ Unlike the base rules above, we apply this to rows
+ without buttons, too, so that the "None" row is the
+ same height as the folder rows. */
+ grid-template-rows: 1.75em minmax(0, auto);
+ /* We also align everything to start, so that we can
+ offset the text from the top to align it with the
+ buttons. */
+ align-items: start;
+
+ .dropdown-list-text-neutral {
+ /* 0.2em is an eyeballed value that keeps the buttons
+ well aligned with the first/only line of text. */
+ padding-top: 0.2em;
+ align-self: start;
+ }
+ }
+ }
}
.dropdown-list-item-common-styles .dropdown-list-text-selected {