Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Conway-Jones
c2ea29e251 remove down carat from typed input with only 1 type 2018-02-03 00:02:49 +00:00
Dave Conway-Jones
6e1a2c436b let labels expand if really necessary, and pin min-width
(should we add max width also ?)
2018-02-02 22:54:51 +00:00
3 changed files with 9 additions and 5 deletions

View File

@@ -116,7 +116,9 @@
this.options.types = this.options.types||Object.keys(allOptions);
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.types(this.options.types);

View File

@@ -178,7 +178,7 @@
}
.form-row label {
display: inline-block;
width: 100px;
min-width: 100px;
}
.form-row input, .form-row div[contenteditable="true"] {
width:70%;
@@ -323,6 +323,7 @@
margin-right: 20px;
text-align: right;
width: 30px;
min-width: 30px;
}
button {
margin-left: 10px;

View File

@@ -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 {