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.

right_sidebar: Rename to right column wherever applicable.

Shubham Padia4da8cf35bf38
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index cb962ba5d23..129a7cd0aae 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -262,7 +262,8 @@
--left-sidebar-width: min(33.3333%, var(--left-sidebar-max-width));
/* 40px (toggle icon) + 5px (gap) + 20px logo + 10px right margin */
--left-sidebar-width-with-realm-icon-logo: 75px;
- --right-sidebar-width: 250px;
+ --right-column-width: 250px;
+ --right-sidebar-width: calc(var(--right-column-width) - 10px);
/* The width of the icon is reduced by 2px, to account for 2px
of top and bottom margin needed for hover backgrounds to
not touch the row outline. */
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 1adb7127c44..fedfde4af0b 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -337,8 +337,8 @@ body.has-overlay-scrollbar {
/* This applies to column-left both in navbar and app. */
.column-right {
- width: var(--right-sidebar-width);
- max-width: var(--right-sidebar-width);
+ width: var(--right-column-width);
+ max-width: var(--right-column-width);
position: absolute;
right: 0;
top: 0;
@@ -502,7 +502,7 @@ body.has-overlay-scrollbar {
.column-right .right-sidebar {
padding-left: 5px;
- width: 240px;
+ width: var(--right-sidebar-width);
}
.column-middle {
@@ -513,7 +513,7 @@ body.has-overlay-scrollbar {
.column-middle,
#compose-content {
- margin-right: var(--right-sidebar-width);
+ margin-right: var(--right-column-width);
margin-left: calc(
var(--left-sidebar-width) + var(--left-sidebar-padding-left)
);