Fix select size

This commit is contained in:
Paul Bottein 2023-12-20 14:51:58 +01:00
parent 20669c54be
commit 214e65dd4c
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View File

@ -104,7 +104,7 @@ export class HaControlSelectMenu extends SelectBase {
if (!this.showArrow) return nothing;
return html`
<div class="icon">
<div class="icon arrow">
<ha-svg-icon .path=${mdiMenuDown}></ha-svg-icon>
</div>
`;
@ -240,7 +240,8 @@ export class HaControlSelectMenu extends SelectBase {
flex-direction: column;
align-items: flex-start;
justify-content: center;
flex: 1;
width: 0;
flex-grow: 1;
overflow: hidden;
}
@ -253,6 +254,13 @@ export class HaControlSelectMenu extends SelectBase {
margin: auto;
}
.arrow {
margin-left: -10px;
margin-inline-end: initial;
margin-inline-start: -10px;
direction: var(--direction);
}
.label {
font-size: 0.85em;
letter-spacing: 0.4px;

View File

@ -191,7 +191,7 @@ export class HuiCardFeaturesEditor extends LitElement {
);
}
};
)
private _supportsFeatureType(type: string): boolean {
if (!this.stateObj) return false;