mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Prevents label from taking up all the space for env autocomplete
This commit is contained in:
@@ -165,7 +165,7 @@
|
|||||||
valEl.appendTo(element)
|
valEl.appendTo(element)
|
||||||
|
|
||||||
if (optSrc) {
|
if (optSrc) {
|
||||||
const optEl = $('<div>').css({ "font-size": "0.8em" });
|
const optEl = $('<div/>', { class: "red-ui-autoComplete-env-label" });
|
||||||
let label
|
let label
|
||||||
if (optSrc.type === 'global-config') {
|
if (optSrc.type === 'global-config') {
|
||||||
label = RED._('sidebar.context.global')
|
label = RED._('sidebar.context.global')
|
||||||
|
|||||||
@@ -13,4 +13,12 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
.red-ui-autoComplete-env-label {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
font-size: 0.8em;
|
||||||
|
max-width: 70%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user