iantrich / list-card

📰 Display sensor list data in a table
Apache License 2.0
123 stars 34 forks source link

The table goes outside the boundaries of the card #32

Closed Dmxsir closed 3 years ago

Dmxsir commented 3 years ago

There's a way to fix this? card list

entity: sensor.seventeentrack_packages_in_transit
title: Packages
feed_attribute: packages
row_limit: 20
columns:
  - title: Name
    field: friendly_name
    style:
      - white-space: nowrap
  - title: Status
    field: status
    style:
      - white-space: nowrap
  - title: Trcking number
    field: tracking_number
  - title: More info
    field: info_text
    style:
      - white-space: nowrap
  - title: location
    field: location
iantrich commented 3 years ago

Card width cannot be changed, and you have info_text set to nowrap, to it can't squeeze to fit. Either wrap columns, decrease text-size or use a layout system that allows for larger card sizes, e.g. layout-card or Custom-Grid-View

Dmxsir commented 3 years ago

Thanks for the suggestion, I'll give it a try.