#Mushroom Text Wrap

1 messages · Page 1 of 1 (latest)

dapper igloo
#

Hello I am trying to get the name text to wrap. Any easy solution? Thank you!

#
entity: sensor.weather_station_temperature
name: Outdoor Temperature
fill_container: false
icon: mdi:thermometer
layout: vertical
grid_options:
  columns: 4
  rows: auto```
silk pebble
#
entity: sensor.weather_station_temperature
name: Outdoor Temperature
fill_container: false
icon: mdi:thermometer
layout: vertical
grid_options:
  columns: 4
  rows: auto
card_mod:
  style:
    mushroom-state-info$: |
      .primary {
        white-space: normal !important;}```
#

Have fun

dapper igloo
#

Thank you very much TPC!

dapper igloo
#

One more hopefully quick question, I am trying to remove the background and shadow. I have done this for other cards and it works but not finding how to combine the text wrap and background removal. Any suggestions? I followed a the card mod guide but not sure what is wrong.

  style: 
    mushroom-state-info$: |
      .primary {
        white-space: normal !important;}
    ha-card {
      background-color: none;
      box-shadow: none;```
silk pebble
#
  style:
     mushroom-state-info$: |
      .primary {
        white-space: normal !important;}
     .: |
      ha-card {
        box-shadow: none;
        background: none;}```
#

Might have to add !important in some cases

#

But it's cleaner if you can make it work without it

dapper igloo
#

thank you, so the .: | is essentially an "and"?

silk pebble
#

It's the main class I think?
It acts the same as styles: |
That's all I know. I don't really know css well. I just learned some basic patterns for my dashboard lol

dapper igloo
#

yeah i'm trying to pick all these little things up. very confusing to me as I don't code. lots of copy paste. Thank you again!

silk pebble
#

No problem! I'm not a coder either. But if you have a basic understanding and know exactly what you want you'll eventually get there. Might just take a bit longer.

dapper igloo
#

i am an architect / designer so i know EXACTLY what I want. getting there is tricky because things need to look good hahah

noble mirage
dapper igloo
#

oh fantastic. this will help a lot. thank you