From 884618adfe2271a772c4ed9f864e929a7e1504d0 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 3 Feb 2018 00:02:49 +0000 Subject: [PATCH] remove down carat from typed input with only 1 type --- editor/js/ui/common/typedInput.js | 4 +++- editor/sass/ui/common/typedInput.scss | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/editor/js/ui/common/typedInput.js b/editor/js/ui/common/typedInput.js index 304a0da35..3b5a0d62c 100644 --- a/editor/js/ui/common/typedInput.js +++ b/editor/js/ui/common/typedInput.js @@ -116,7 +116,9 @@ this.options.types = this.options.types||Object.keys(allOptions); this.selectTrigger = $('').prependTo(this.uiSelect); - $('').appendTo(this.selectTrigger); + if (this.options.types.length > 1) { + $('').appendTo(this.selectTrigger); + } this.selectLabel = $('').appendTo(this.selectTrigger); this.types(this.options.types); diff --git a/editor/sass/ui/common/typedInput.scss b/editor/sass/ui/common/typedInput.scss index e664cd8ec..39d71d68e 100644 --- a/editor/sass/ui/common/typedInput.scss +++ b/editor/sass/ui/common/typedInput.scss @@ -64,9 +64,10 @@ vertical-align: middle; color: #555; i { - position:relative; - top:-3px; - margin-right:4px; + position: relative; + top: -3px; + margin-left: 1px; + margin-right: 2px; margin-top: 1px; vertical-align: middle; &.fa-ellipsis-h {