From acd7148967c8c0a75841ad2e09e7c90dc0538f2d Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 5 Aug 2021 17:01:11 +0530 Subject: [PATCH] change collapse/expand icons from 'caret' to 'chevron' --- www/common/toolbar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/common/toolbar.js b/www/common/toolbar.js index e954d21f4..fd1c96490 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -460,7 +460,11 @@ MessengerUI, Messages, Pages) { Messages.ui_expand = "Expand"; // XXX createCollapse = function (toolbar) { - var icon = h('i.fa.fa-caret-up'); + var up = 'fa-chevron-up'; + var down = 'fa-chevron-down'; + var both = up + ' ' + down; + + var icon = h('i.fa.' + up); var $icon = $(icon); var text = h('span', Messages.ui_collapse); var $text = $(text); @@ -472,7 +476,7 @@ MessengerUI, Messages, Pages) { $button.click(function () { toolbar.$top.toggleClass('toolbar-hidden'); var hidden = toolbar.$top.hasClass('toolbar-hidden'); - $icon.toggleClass('fa-caret-down fa-caret-up'); //.toggleClass('fa-caret-up'); + $icon.toggleClass(both); $button.toggleClass('cp-toolbar-button-active'); $text.text(Messages[(hidden ? 'ui_expand': 'ui_collapse')]); });