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: Make highlighted new-channel area clickable.

Karl Stolleyd21a4ad5dbe8
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index c520eda606a..0601b39b3ae 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -52,12 +52,21 @@
.add-stream-icon-container {
grid-area: add-channel;
display: grid;
- place-items: center center;
margin: 2px 0;
border-radius: 3px;
.add_stream_icon {
+ /* We display as flex to center the icon while
+ keeping the entire highlighted area clickable. */
+ display: flex;
+ place-items: center center;
color: var(--color-left-sidebar-heads-up-icon);
+
+ &::before {
+ /* To horizontally center the icon within the
+ flex, though, we need this margin adjustment. */
+ margin: 0 auto;
+ }
}
&:hover {