Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
right_sidebar: Establish inner grid on selectable_sidebar_block.
Karl Stolley1d7e0367b851
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.cssindex 72251de1ecc..04ed083f2f6 100644--- a/web/styles/right_sidebar.css+++ b/web/styles/right_sidebar.css@@ -117,14 +117,10 @@ $user_status_emoji_width: 24px;}.user_circle {- min-width: 8px;+ width: 8px;height: 8px;- margin: 0 5px;- display: block;- /* This is a temporary adjustment until- the right-sidebar rows are rewritten- with CSS Grid. */- top: calc(var(--line-height-sidebar-row) / 4);+ grid-area: starting-anchor-element;+ place-self: center center;}.empty-list-message {@@ -184,7 +180,6 @@ $user_status_emoji_width: 24px;.user-presence-link,.user_sidebar_entry .selectable_sidebar_block {- display: flex;overflow: hidden;.user-name {@@ -195,21 +190,18 @@ $user_status_emoji_width: 24px;.user_sidebar_entry .selectable_sidebar_block {grid-area: row-content;- display: flex;- flex-direction: row;-}--.user-name-and-status-wrapper {- display: block;- width: 100%;+ display: grid;+ grid-template:+ "starting-anchor-element row-content markers-and-controls" var(+ --line-height-sidebar-row+ )+ ". row-content ." auto / 20px minmax(0, 1fr)+ minmax(0, auto);+ align-items: baseline;}.user-presence-link {- width: calc(100% - $user_status_emoji_width);-- .status-emoji {- top: 9px;- }+ grid-area: row-content;}.my_user_status {@@ -266,7 +258,6 @@ $user_status_emoji_width: 24px;.status-text {display: block;- width: 170px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;@@ -281,8 +272,9 @@ $user_status_emoji_width: 24px;}.unread_count {+ grid-area: markers-and-controls;+ align-self: center;display: none;- margin-top: 2.5px;}.unread_count:not(.hide) {diff --git a/web/styles/user_circles.css b/web/styles/user_circles.cssindex 90234782c2e..aaa20d9590a 100644--- a/web/styles/user_circles.css+++ b/web/styles/user_circles.css@@ -4,9 +4,6 @@.user_circle_empty_line {border-radius: 50%;border: 1px solid;- float: left;- position: relative;- top: 5px;}.user_circle_green {diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex a0250686804..90873f0df70 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -836,6 +836,7 @@ strong {height: 8px;margin: 0 5px 0 -6px;position: relative;+ float: left;top: 6px;right: 8px;display: inline-block;