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

Change digits in price #11

Open
KrX3D opened this issue Jan 9, 2022 · 1 comment
Open

Change digits in price #11

KrX3D opened this issue Jan 9, 2022 · 1 comment

Comments

@KrX3D
Copy link

KrX3D commented Jan 9, 2022

Hello,

i would like to change the digits after the Point.

i.e. Price is 1.699€ -> 1.69€

EDIT: also is there a way to have the name Multi Line? like with
or /n ?

@KrX3D
Copy link
Author

KrX3D commented Feb 15, 2022

i changed line 106 to:

><span style="font-size: 75%;">${state.state.slice(0, -1)}&euro;</span></ha-label-badge></td>;`

and now i get 2 digits after

now i made some more changed:

https://github.com/KrX3D/tankerkoenig-card

i changed "name" to "street" and "city" and with this i added "multiline"

image

it would be nice if you could add those into your reposity. thanks

EDIT:

What changed in my fork:

  • "digits" parameter added. Price shown in 2 or 3 digits. Third digit is superscripted
  • "street" and "city" replaced name parameter. -> brand, street and city are shown each in different line
  • parameter "sort" added .> pick what to sort e5, e10 or diesel
  • fixed icon when show_closed was set to true and gas station was closed. Remove ha-icon from ha-label-badge home-assistant/frontend#10182

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

1 participant