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.

buttons: Fix icon-button icon alignment on variable sizes.

Sayam Samal33266f7de339
diff --git a/web/styles/buttons.css b/web/styles/buttons.css
index fc30fa9a7e6..fd7d4075c5c 100644
--- a/web/styles/buttons.css
+++ b/web/styles/buttons.css
@@ -364,6 +364,9 @@
/* This class should always be used with an icon-button-* class
defining the color scheme of the button, defined below. */
display: flex;
+ justify-content: center;
+ align-items: center;
+ aspect-ratio: 1;
font-size: var(--base-font-size-px);
background-color: transparent; /* Override button default background color */
padding: 0.375em;