mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-26 09:18:40 -04:00
+20
-7
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user