mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Prevent TypedInput label overflowing element
Also adds title attribute to the button for the label so it gets a tooltip
This commit is contained in:
parent
233a74c146
commit
9eb668ab30
@ -773,6 +773,11 @@
|
||||
if (opt.hasValue === false || (opt.showLabel !== false && !opt.icon)) {
|
||||
this.selectLabel.text(opt.label);
|
||||
}
|
||||
if (opt.label) {
|
||||
this.selectTrigger.attr("title",opt.label);
|
||||
} else {
|
||||
this.selectTrigger.attr("title","");
|
||||
}
|
||||
if (opt.hasValue === false) {
|
||||
this.selectTrigger.addClass("red-ui-typedInput-full-width");
|
||||
} else {
|
||||
|
@ -24,7 +24,7 @@
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
overflow:visible;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
&[disabled] {
|
||||
input, button {
|
||||
@ -33,7 +33,7 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.red-ui-typedInput-input-wrap {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user