Skip to content

Commit

Permalink
Merge pull request #59 from rohankapoorcom/attribute-alignment-compac…
Browse files Browse the repository at this point in the history
…t-mode

Fix vertical alignment of attribute in compact mode (fixes #58)
  • Loading branch information
rohankapoorcom committed Aug 15, 2023
2 parents 741fe26 + 963e9f5 commit bf3faef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/slider-button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,12 @@ export class SliderButtonCard extends LitElement implements LovelaceCard {
*/
}
.compact .attribute {
display: inline-block;
max-width: calc(100% - 0em);
overflow: hidden;
}
.oneliner {
color: var(--state-color-on, var(--label-badge-text-color, white));
text-overflow: ellipsis;
Expand Down

0 comments on commit bf3faef

Please sign in to comment.