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

Font Size #39

Open
hartitman opened this issue Jun 5, 2023 · 3 comments
Open

Font Size #39

hartitman opened this issue Jun 5, 2023 · 3 comments

Comments

@hartitman
Copy link

Hi,

Can font sizes for both name/title and state/unit code be added so these can be changed.

Thank you

@igorsantos07
Copy link

Yep, that gets a bit complicated when you try to make different layouts with different bar sizes and text goes awry...

Either too small
image

Or going over the scale size (40px in this example)
image

@DeFlanko
Copy link

DeFlanko commented Apr 4, 2024

image
Adding to this post, seemed relevant.

Using System bridge to capture my Host CPU core data, then using big number card to display the core cpu data to match that layout you'd normally see in Task Manager gets me this view.

It works, but Im looking for a way to keep the same sized box scale, but literally shrink the font size by 50%
I have tried:

type: custom:bignumber-card
min: 0
max: 100
entity: sensor.load_cpu_0
color: cornflowerblue
from: bottom
scale: 30px
card_mod:
  style: |
    ha-card {
      font-size: 10px;
    }

But card-mod only works on cards that contain a ha-card element. This includes almost every card which can be seen, but not e.g. conditional, entity_filter, vertical-stack, horizontal-stack, grid.

which these cards are in a vertical can horizonal stacks to produce the layout.

@Tamooj
Copy link

Tamooj commented Jul 19, 2024

I'll second the question - the fonts don't scale down when the box is scaled down, and regularly spills outside. This is a common problem for smaller tablet-based dashboards, etc. I almost want to call this a bug.

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

4 participants