Make min width of select configurable (#11965)

This commit is contained in:
Bram Kragten 2022-03-07 14:55:44 +01:00
parent ac7acc5802
commit 0bbc0ebb3c
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,9 @@ export class HaSelect extends SelectBase {
.mdc-select:not(.mdc-select--disabled) .mdc-select__icon {
color: var(--secondary-text-color);
}
.mdc-select__anchor {
width: var(--ha-select-min-width, 200px);
}
`,
];
}

View File

@ -87,6 +87,7 @@ class HuiInputSelectEntityRow extends LitElement implements LovelaceRow {
}
ha-select {
width: 100%;
--ha-select-min-width: 0;
}
`;