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.

recent_view: Rename and hoist the channel-column adjustment variable.

Aman Agrawal68a71965c607
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 92e29e2332e..073c0908c6e 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -36,6 +36,12 @@
}
#recent_view {
+ --recent-view-header-channel-column-adjustment: calc(
+ var(--recent-view-row-left-padding) +
+ var(--recent-view-body-border-width) -
+ var(--recent-view-header-border-width)
+ );
+
display: none;
padding-top: var(--navbar-fixed-height);
/* Add bottom padding equal to `#bottom-whitespace`. This helps us keep #compose visible
@@ -654,11 +660,6 @@
cursor: default;
.recent-view-header-wrapper {
- --recent-view-channel-row-header-minus-body: calc(
- var(--recent-view-row-left-padding) +
- var(--recent-view-body-border-width) -
- var(--recent-view-header-border-width)
- );
/* Match the row grid so "Channel" and "Conversation" sort
spans align with channel and topic text in rows. Sort
arrows are inside the spans, so 3 columns suffice.
@@ -676,13 +677,13 @@
calc(
100% -
var(
- --recent-view-channel-row-header-minus-body
+ --recent-view-header-channel-column-adjustment
)
) /
3
)
) +
- var(--recent-view-channel-row-header-minus-body)
+ var(--recent-view-header-channel-column-adjustment)
)
auto 1fr auto;
align-items: stretch;