Fix select size
This commit is contained in:
parent
20669c54be
commit
214e65dd4c
|
@ -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;
|
||||
|
|
|
@ -191,7 +191,7 @@ export class HuiCardFeaturesEditor extends LitElement {
|
|||
);
|
||||
}
|
||||
};
|
||||
)
|
||||
|
||||
private _supportsFeatureType(type: string): boolean {
|
||||
if (!this.stateObj) return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue