lovelace-mushroom icon indicating copy to clipboard operation
lovelace-mushroom copied to clipboard

[Bug]: Space in Subtitle

Open milandzuris opened this issue 5 months ago • 2 comments

Requirements

  • [X] I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
  • [X] I did a search to see if there is a similar issue or if a pull request is open.
  • [X] I have read the state of card mod support (in pin issues) and understand card mod support is not provided in this repository.

Current Behavior

Hi how fix this Space in subtitle? image

Expected Behavior

No response

Steps To Reproduce

No response

Context

YAML state


Environment

- Browser:
- HA Version:
- Mushroom:

Anything else?

No response

milandzuris avatar Feb 10 '24 20:02 milandzuris

Hello 👋 Title card is using jinja templating rules. You can take control of white spaces using minus - sign. You can find the full documentation here: https://jinja.palletsprojects.com/en/3.0.x/templates/#whitespace-control

piitaya avatar Feb 11 '24 21:02 piitaya

Hello 👋 Title card is using jinja templating rules. You can take control of white spaces using minus - sign. You can find the full documentation here: https://jinja.palletsprojects.com/en/3.0.x/templates/#whitespace-control

Hi, sorry but i really don't understand how to change do you show me on one of my code?, thx

{{ '👑 ' ~ as_timestamp(state_attr('calendar.slovakia_holidays', 'start_time')) | timestamp_custom('%-d.%-m') ~ ' ' ~ state_attr('calendar.slovakia_holidays', 'message') if (as_timestamp(state_attr('calendar.slovakia_holidays', 'start_time')) - as_timestamp(now())) <= 432000 else '' }}

milandzuris avatar Feb 13 '24 03:02 milandzuris