Merge pull request #5293 from GogoVega/fix-5286

Prevents label from taking up all the space for env autocomplete
This commit is contained in:
Nick O'Leary
2025-10-09 11:26:36 +01:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -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')

View File

@@ -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%;
}