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.

left_sidebar: Move DM section header id to top level in css file.

Shubham Padia6c3707f48459
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 0f594d370f5..73592088349 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -198,50 +198,50 @@ li.show-more-topics {
}
}
-.direct-messages-container {
- /* Properly offset all the grid rows
- in the DM section. */
- margin-right: 12px;
-
- &#direct-messages-section-header {
- grid-template-columns: 0 15px minmax(0, 1fr) max-content 30px 0;
- grid-template-rows: var(--line-height-sidebar-row-prominent);
- /* TODO: Rewrite the `--left-sidebar-collapse-widget-gutter`
- value and the styles dependent on it so that this kind of
- 1990s layout shenanigans is made unnecessary. */
- margin-left: -3px;
- cursor: pointer;
- white-space: nowrap;
+#direct-messages-section-header {
+ grid-template-columns: 0 15px minmax(0, 1fr) max-content 30px 0;
+ grid-template-rows: var(--line-height-sidebar-row-prominent);
+ /* TODO: Rewrite the `--left-sidebar-collapse-widget-gutter`
+ value and the styles dependent on it so that this kind of
+ 1990s layout shenanigans is made unnecessary. */
+ margin-left: -3px;
+ cursor: pointer;
+ white-space: nowrap;
- #toggle-direct-messages-section-icon {
- grid-area: starting-anchor-element;
- }
+ #toggle-direct-messages-section-icon {
+ grid-area: starting-anchor-element;
+ }
- .left-sidebar-title {
- grid-area: row-content;
- }
+ .left-sidebar-title {
+ grid-area: row-content;
+ }
- .heading-markers-and-controls {
- grid-area: markers-and-controls;
- display: flex;
- gap: 5px;
- align-items: center;
- }
+ .heading-markers-and-controls {
+ grid-area: markers-and-controls;
+ display: flex;
+ gap: 5px;
+ align-items: center;
+ }
- #show-all-direct-messages {
- width: var(--left-sidebar-header-icon-width);
- display: flex;
- align-items: center;
- justify-content: center;
- opacity: 0.7;
- text-decoration: none;
- color: inherit;
+ #show-all-direct-messages {
+ width: var(--left-sidebar-header-icon-width);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ opacity: 0.7;
+ text-decoration: none;
+ color: inherit;
- &:hover {
- opacity: 1;
- }
+ &:hover {
+ opacity: 1;
}
}
+}
+
+.direct-messages-container {
+ /* Properly offset all the grid rows
+ in the DM section. */
+ margin-right: 12px;
& ul.dm-list {
list-style-type: none;