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: Fix vertical centering of load-more button label.

Aman Agrawal12ac55369fc4
diff --git a/web/styles/recent_view.css b/web/styles/recent_view.css
index 30d1702a447..b9f2b08af87 100644
--- a/web/styles/recent_view.css
+++ b/web/styles/recent_view.css
@@ -147,7 +147,21 @@
.fetch-messages-button {
display: grid;
- justify-items: center;
+ place-items: center;
+
+ /* Stack the loading indicator and button label in the
+ same grid cell so the label stays vertically centered
+ when the indicator is empty/hidden. */
+ > * {
+ grid-row: 1;
+ grid-column: 1;
+ }
+
+ /* Override the inline height: 0 set by loading.make_indicator
+ so the spinner participates in grid alignment. */
+ .loading-indicator {
+ height: auto !important;
+ }
.loading_indicator_spinner {
height: 20px;