Fix SelectButton key/value truncation

Fixes #2454
This commit is contained in:
Luke Street
2026-09-16 22:43:18 -06:00
parent 94d857303d
commit 701e075698
2 changed files with 21 additions and 7 deletions
+20 -7
View File
@@ -333,21 +333,24 @@ select-button:disabled {
cursor: default;
}
select-button key,
select-button value {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
select-button key {
font-family: var(--font-family-heading);
font-weight: bold;
font-size: var(--font-size-xl);
text-transform: uppercase;
flex: 0 0 auto;
white-space: nowrap;
flex: 0 1 auto;
}
select-button value {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 0 20%;
text-align: right;
font-size: var(--font-size-2xl);
}
@@ -361,6 +364,16 @@ select-button input {
font-size: var(--font-size-2xl);
}
select-button icon {
display: none;
flex: 0 0 auto;
}
select-button.has-icon icon,
select-button.group-button icon {
display: inline-block;
}
select-button.group-button icon {
flex: 0 0 24dp;
margin-left: auto;
+1
View File
@@ -80,6 +80,7 @@ void SelectButton::update_props(Props props) {
if (!props.icon.empty()) {
mIconElem->SetClass(props.icon, true);
}
mRoot->SetClass("has-icon", !props.icon.empty());
}
set_value_label(props.value);
set_modified(props.modified);