Skip to content

[Enhancement]: JINJA Should accept more STYLE tags #129

Description

@emartoni

Requirements

  • I checked the README.
  • I have updated entity-progress-card to the latest available version.
  • I did a search to see if there is a similar issue.

What would you like to improve?

In the previous version of the card, JINJA accepted more style tags than just color and background-color, which was beneficial because it gave us more flexibility.

Image

Why is this improvement helpful?

It would be possible to change the font size and also create an HTML structure to handle multiple variables.

Describe alternatives you've considered

No response

Additional context

name: |-
  {% set raw = states(entity) %}
    <span style="
      display:inline-block;
      width:40%;
      text-align:left;
      font-weight:normal;
    ">Processador</span>
    <span style="
      display:inline-block;
      width:58%;
      text-align:right;
      font-weight:normal;
    ">{{ raw | float(0) | round(0) }}%</span>

Metadata

Metadata

Labels

RCImplemented and shipped in a RC.enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions