Prevents label from taking up all the space for env autocomplete

This commit is contained in:
GogoVega
2025-10-08 15:27:07 +02:00
parent 0c92332033
commit ebf5ae0ef3
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%;
}