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: Add option in hbs template to enable squared icon buttons.

Sayam Samal97bbff54f4af
diff --git a/web/templates/components/icon_button.hbs b/web/templates/components/icon_button.hbs
index 40dae84a05e..8205a1a4033 100644
--- a/web/templates/components/icon_button.hbs
+++ b/web/templates/components/icon_button.hbs
@@ -1,3 +1,3 @@
-<button class="{{#if custom_classes}}{{custom_classes}} {{/if}}icon-button icon-button-{{intent}}" tabindex="0">
+<button class="{{#if custom_classes}}{{custom_classes}} {{/if}}icon-button {{#if squared}}icon-button-square {{/if}}icon-button-{{intent}}" tabindex="0">
<i class="zulip-icon zulip-icon-{{icon}}"></i>
</button>