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: Resize topic check with UI.

Karl Stolleya9c9115175fd
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index d0f76985693..8e01cb6c6df 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -60,13 +60,21 @@
/* This represents the space in the sidebar reserved for symbols like
the #; labels like the stream name go to the right of this. */
--left-sidebar-privacy-icon-column-size: 19px;
- /* The full topic indentation includes 4px of indent in addition to
- the above (and another 5px of padding not measured here) */
+ /* 13px at 14px/1em */
+ --left-sidebar-topic-resolve-width: 0.9286em;
+ /* At legacy sizes, the full indentation to the
+ left of the topic name was 25px of gutter,
+ plus 13px for the topic-resolution checkmark.
+ That works out to 38px (25px + 13px), which
+ we here express as pixels, as that is always
+ the amount of space to the left of the topic
+ name. However, CSS subtracts the em-unit width
+ of the topic-resolution checkmark to prevent
+ the the topic name from being shifted to the
+ right. */
--left-sidebar-topic-indent: calc(
- var(--left-sidebar-far-left-gutter-size) +
- var(--left-sidebar-privacy-icon-column-size) + 4px
+ 38px - var(--left-sidebar-topic-resolve-width)
);
- --left-sidebar-topic-resolve-width: 13px;
/* space direct message / stream / topic names from unread counters
and @ mention indicators by 3px on the right */
--left-sidebar-before-unread-count-padding: 3px;
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index ebea8298a6e..aa1fde4fc8c 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -70,16 +70,12 @@ li.show-more-topics {
font-weight: normal;
.input-append.topic_search_section {
- padding: 2px 0 2px
- calc(
- var(--left-sidebar-topic-indent) -
- var(--left-sidebar-topic-resolve-width)
- );
+ padding: 2px 0 2px var(--left-sidebar-topic-indent);
margin-bottom: 3px;
margin-left: 3px;
& input {
- width: calc(100% - 50px);
+ width: calc(100% - 30px);
}
.clear_search_button {
@@ -877,10 +873,9 @@ li.top_left_scheduled_messages {
.topic-box,
.searching-for-more-topics {
grid-template-columns:
- 25px var(--left-sidebar-topic-resolve-width) minmax(0, 1fr) minmax(
- 0,
- max-content
- )
+ var(--left-sidebar-topic-indent) var(
+ --left-sidebar-topic-resolve-width
+ ) minmax(0, 1fr) minmax(0, max-content)
30px 0;
}
@@ -918,7 +913,8 @@ li.top_left_scheduled_messages {
.sidebar-topic-check {
grid-area: starting-anchor-element;
- font-size: 15px;
+ /* 15px at 14px/1em */
+ font-size: 1.0714em;
}
.stream-markers-and-controls,