mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Merge pull request #5293 from GogoVega/fix-5286
Prevents label from taking up all the space for env autocomplete
This commit is contained in:
@@ -165,7 +165,7 @@
|
||||
valEl.appendTo(element)
|
||||
|
||||
if (optSrc) {
|
||||
const optEl = $('<div>').css({ "font-size": "0.8em" });
|
||||
const optEl = $('<div/>', { class: "red-ui-autoComplete-env-label" });
|
||||
let label
|
||||
if (optSrc.type === 'global-config') {
|
||||
label = RED._('sidebar.context.global')
|
||||
|
||||
@@ -13,4 +13,12 @@
|
||||
text-overflow: ellipsis;
|
||||
direction: rtl;
|
||||
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