mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
remove down carat from typed input with only 1 type
This commit is contained in:
parent
6e1a2c436b
commit
c2ea29e251
@ -116,7 +116,9 @@
|
|||||||
this.options.types = this.options.types||Object.keys(allOptions);
|
this.options.types = this.options.types||Object.keys(allOptions);
|
||||||
|
|
||||||
this.selectTrigger = $('<button tabindex="0"></button>').prependTo(this.uiSelect);
|
this.selectTrigger = $('<button tabindex="0"></button>').prependTo(this.uiSelect);
|
||||||
$('<i class="fa fa-sort-desc"></i>').appendTo(this.selectTrigger);
|
if (this.options.types.length > 1) {
|
||||||
|
$('<i class="fa fa-sort-desc"></i>').appendTo(this.selectTrigger);
|
||||||
|
}
|
||||||
this.selectLabel = $('<span></span>').appendTo(this.selectTrigger);
|
this.selectLabel = $('<span></span>').appendTo(this.selectTrigger);
|
||||||
|
|
||||||
this.types(this.options.types);
|
this.types(this.options.types);
|
||||||
|
@ -64,9 +64,10 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: #555;
|
color: #555;
|
||||||
i {
|
i {
|
||||||
position:relative;
|
position: relative;
|
||||||
top:-3px;
|
top: -3px;
|
||||||
margin-right:4px;
|
margin-left: 1px;
|
||||||
|
margin-right: 2px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
&.fa-ellipsis-h {
|
&.fa-ellipsis-h {
|
||||||
|
Loading…
Reference in New Issue
Block a user