lovelace-paper-buttons-row icon indicating copy to clipboard operation
lovelace-paper-buttons-row copied to clipboard

Can't use a <br> for a new line in the name

Open almighty059 opened this issue 3 years ago • 4 comments

I am trying to use <br> for a new line in the name of the individual entity buttons of the card and I am getting an area. Can that be done or does it have to be done a special way?

almighty059 avatar Jan 14 '22 21:01 almighty059

Hi, did you get anywhere with this??

kitkat270 avatar Apr 10 '22 22:04 kitkat270

Would you be able to provide an example configuration so I can test it and better understand what you're trying to do?

jcwillox avatar Apr 11 '22 03:04 jcwillox

@jcwillox I apologize for the delayed response and I actually forgot the exact scenario in which I encountered the issue but it was similar to my example below. The paper-button-row will auto wrap the text to the next line depending on the space available however the issue I ran into was for a specific situation in which I wanted to control the wrap and I felt using a line break command was the better option to space out the name. An example of another card that does this is RomRIder's button-card. The button-card accepts the line break command and by doing so it allows the user a little more customization and the ability to manually control the wrapping of the text entered within the name field.

`type: entities entities:

  • type: "custom:paper-buttons-row" buttons:
    • entity: light.kcl_local layout: name_state name: Kitchen Lights
    • entity: light.lrcl_local layout: name_state name: Living Room
      Ceiling Lights
    • entity: light.bcl_local layout: name_state`

Screenshot 2022-06-03 150151

almighty059 avatar Jun 03 '22 20:06 almighty059

Hi! what is the status of this problem? I would also need line break... Thanks!

Protoncek avatar Mar 04 '23 10:03 Protoncek