Skip to content

Commit

Permalink
Resolve misaligned action button in compact mode, per #5
Browse files Browse the repository at this point in the history
  • Loading branch information
lizsugar committed May 20, 2022
1 parent f28cb31 commit 4996e6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/slider-button-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -8414,6 +8414,13 @@ let SliderButtonCard = class SliderButtonCard extends LitElement {
.unavailable .action {
color: var(--disabled-text-color);
}
.compact .action {
position: relative;
float: right;
bottom: 0px;
right: 0px;
}
.circular-loader {
Expand Down
7 changes: 7 additions & 0 deletions src/slider-button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,13 @@ export class SliderButtonCard extends LitElement implements LovelaceCard {
.unavailable .action {
color: var(--disabled-text-color);
}
.compact .action {
position: relative;
float: right;
bottom: 0px;
right: 0px;
}
.circular-loader {
Expand Down

0 comments on commit 4996e6d

Please sign in to comment.