custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.93k stars 233 forks source link

can't set styles for last_changed #614

Closed a-bianucci closed 2 years ago

a-bianucci commented 2 years ago

Checklist

Describe the bug I can get the "show_last_changed: true" to function, however I can't style it in the "Styles" section by leveraging last-changed, or last_changed

Version of the card Version: 3.4.2

To Reproduce This is the configuration I used:

type: custom:button-card
entity: light.kitchen_bar
show_name: false
styles:
  card:
    - height: 100px
    - background-color: rgba(0,0,0,0.0)
    - box-shadow: 0px 0px 0.0px 0px
  grid:
    - position: absolute
  name:
    - align-self: start
    - justify-self: center
    - font-size: 24px
    - color: rgb(128,128,128)
  last_changed:
     - font-size: 10px

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

I would expect that any styles could be applied

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

kbromer commented 2 years ago

FWIW it takes the style of the 'label' object

a-bianucci commented 2 years ago

Hot damn! Thank you, and appreciated - I'll close even though I would hope that in the future it could be separated.