From 87d8efe650be3082a67aa486e1b7b3b7502950a9 Mon Sep 17 00:00:00 2001 From: guerler Date: Sat, 22 Sep 2018 14:11:01 -0400 Subject: [PATCH] Fix icon indention in buttons --- client/galaxy/scripts/mvc/ui/ui-buttons.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/galaxy/scripts/mvc/ui/ui-buttons.js b/client/galaxy/scripts/mvc/ui/ui-buttons.js index 5aa0b71dbfd4..443ded56703a 100644 --- a/client/galaxy/scripts/mvc/ui/ui-buttons.js +++ b/client/galaxy/scripts/mvc/ui/ui-buttons.js @@ -57,9 +57,14 @@ var Button = Backbone.View.extend({ this.$title.html(options.wait_text); } else { this.$el.addClass(options.cls); - this.$icon.addClass(options.icon); + if (options.icon) { + this.$icon.addClass(options.icon); + } if (options.title) { - this.$title.html(options.title).addClass("ml-1"); + this.$title.html(options.title); + if (options.icon) { + this.$icon.addClass("mr-1"); + } } } },