Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
right_sidebar: Introduce the right sidebar with a narrower width.
Karl Stolley17629c0f9caf
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 84102017417..9b9db391a86 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -273,7 +273,9 @@--right-column-collapsed-sidebar-width: 10.15em;/* 288px at 14px/1em */--right-column-max-width: 20.57em;- --right-column-width: clamp(10em, 50%, var(--right-column-max-width));+ /* We open the right sidebar at xl_min at a size of 240px,+ here expressed as precisely 20% of the viewport. */+ --right-column-width: min(20%, var(--right-column-max-width));--right-sidebar-width: calc(var(--right-column-width) - var(--right-sidebar-left-spacing));diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 85c6741cf07..b15e0b61509 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -1554,6 +1554,14 @@ div.toggle_resolve_topic_spinner .loading_indicator_spinner {display: none;&.expanded {+ /* In the extended state, we open the sidebar+ to its maximum possible size (otherwise, it+ would be unnecessarily too narrow). */+ --right-column-width: var(--right-column-max-width);+ --right-sidebar-width: calc(+ var(--right-column-max-width) -+ var(--right-sidebar-left-spacing)+ );display: block;position: absolute;float: none;@@ -1567,9 +1575,8 @@ div.toggle_resolve_topic_spinner .loading_indicator_spinner {.right-sidebar {box-shadow: 0 -2px 3px 0 hsl(0deg 0% 0% / 10%);border-left: 1px solid var(--color-border-sidebar);- padding-right: 15px;- padding-left: 15px;height: 100%;+ width: var(--right-sidebar-width);right: 0;background-color: var(--color-background);}