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

View File

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