mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Fix select size
This commit is contained in:
parent
d0f3eed49e
commit
60c7a0e545
@ -83,7 +83,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>
|
||||||
`;
|
`;
|
||||||
@ -179,7 +179,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,6 +193,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;
|
||||||
|
@ -206,7 +206,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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user