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

Specify a "width" for every additional state #112

Closed
ildar170975 opened this issue Oct 11, 2020 · 1 comment
Closed

Specify a "width" for every additional state #112

ildar170975 opened this issue Oct 11, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ildar170975
Copy link

"Additional states" - means states specified in inside the "entities" section:

  - type: 'custom:multiple-entity-row'
    entity: SOME_ENTITY_ID
    entities:
      - entity: SOME_ADDITIONAL_ENTITY_ID_1   # this one
        name: 'some name 1'
      - entity: SOME_ADDITIONAL_ENTITY_ID_2   # and this one
        name: 'some name 2'

In case of several similar rows it may not look perfect:
1
Here for some row a battery level is <10% and the corresponding string value has a smaller width.
That is why the "table" became not "perfect" since some values are shifted horizontally.

Currently I have to "widen" names like this:
name: '- level -'
As a result the table becomes more nice since all values are aligned better:
2

But on iPhone again I can see misalignment - may be because of limited possibilities of my method.

So, it would be great to have some possibility to specify a width somehow for every parameter.
Actually, I do not know how to do it. In my practice I used "tabs" (\t) for aligning values in tables.

@benct
Copy link
Owner

benct commented Oct 12, 2020

Can use card-mod for now. However, will add some style support soon (ref #111).

@benct benct added the enhancement New feature or request label Oct 12, 2020
@benct benct closed this as completed Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants