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

CSS improvement for hidden secondary_info #100

Open
ThomDietrich opened this issue Sep 28, 2022 · 1 comment
Open

CSS improvement for hidden secondary_info #100

ThomDietrich opened this issue Sep 28, 2022 · 1 comment

Comments

@ThomDietrich
Copy link

Hey guys.
I'm, using the new option to hide the secondary_info, introduced in #95.

  - type: custom:mini-climate
    entity: climate.room
    hide_current_temperature: true
    toggle:
      hide: true
    secondary_info:
      hide: false

image

As you can see, the remaining primary text is still aligned to the top. It would be desired to align it center, in line with the icons and temperatures.

This is far beyond my CSS capabilities. Hoping for an CSS expert to jump in! Thanks!!

@DaN66O
Copy link

DaN66O commented May 5, 2023

try this:

card_mod:
  style: | 
    .entity__info__name {
      padding-top: 18%;
    }

Screenshot_10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants