Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.44k stars 39 forks source link

Disabling "Text scrolling effect" then ignores "Show name" #598

Open jstrot opened 1 week ago

jstrot commented 1 week ago

Describe the bug

I have a small button in a 1/4 width column where I show state entities of my climate system. When the state value is too large ("Home") the "Text scrolling effect" kicks in. If I disable "Text scrolling effect" then the button doesn't only show the state but also the entity name ("Lennox iComfort S30") even though I disabled "Show name".

To Reproduce

Steps to reproduce the behavior:

Create an horizontal stack with 4 buttons such as this one:

type: custom:bubble-card
card_type: button
entity: binary_sensor.system_home_state
show_name: false
show_state: true
button_type: state
scrolling_effect: true

The state (second button in my example) starts scrolling. (See screenshot 1)

Now change to scrolling_effect: false. The state stops scrolling but the name is added even though there is show_name: false. (See screenshot 2)

Expected behavior

The entity state should be fixed, on multiple lies and/or with the overflow hidden or ellipsized. The entity name must not be displayed.

Screenshots

Screenshot 1: Scrolling state image

Screenshot 2: Entity name wrongly displayed image

Informations (please complete the following information):

Additional context

None.

Thank you! 🍻

Clooos commented 1 week ago

Hi, it's possible that's the preview in the editor is not correct, is it also happening when you save that card?

jstrot commented 6 days ago

Hi Clooos, unfortunately not: The name is still shown after saving.

Clooos commented 6 days ago

Thank you for the information, I will have to try that.