Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(select-card) #885

Merged
merged 15 commits into from
Jan 10, 2023
Prev Previous commit
Next Next commit
fixed overflow bug
  • Loading branch information
PaoloTK committed Nov 29, 2022
commit 34697b5e08ffcf0d6f440244b66a1d225ab7e3d8
1 change: 0 additions & 1 deletion src/cards/select-card/controls/select-option-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class SelectOptionControl extends LitElement {
@selected=${this._selectChanged}
@closed=${(e) => e.stopPropagation()}
.value=${value}
fixedMenuPosition
naturalMenuWidth
>
${options.map((option) => {
Expand Down
6 changes: 3 additions & 3 deletions src/cards/select-card/select-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export class SelectCard extends MushroomBaseCard implements LovelaceCard {
super.styles,
cardStyle,
css`
.actions {
overflow: visible;
}
mushroom-state-item {
cursor: pointer;
}
Expand All @@ -150,9 +153,6 @@ export class SelectCard extends MushroomBaseCard implements LovelaceCard {
mushroom-select-option-control {
flex: 1;
}
.mdc-menu-surface mushroom-select {
left: 300px !important;
}
`,
];
}
Expand Down