custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

column width

UniCizin opened this issue · comments

hey guys,

i need your help with formatting the size of a column.

my current config

type: custom:flex-table-card
title: Bundesliga Tabelle
entities:
include: sensor.bund_scoreboard2
exclude: zwave.unknown_node*
columns:

  • name: Platz
    data: entries
    modify: x.stats[10].value
  • name: Logo
    data: entries
    modify: ''' <img src="'' + x.team.logos[0].href + ''"style="width: 20%">'''
    align: left
  • name: Mannschaft
    data: entries
    modify: x.team.name
  • name: Spiele
    data: entries
    modify: x.stats[0].value
  • name: Punkte
    data: entries
    modify: x.stats[3].value

if you now look at the screenshot, you see that the logo column is to big.
How can i get it smaller?
flex_card_screenie

Try this:

          css:
            tbody tr td:nth-child(2)+: 'width: 32px;'

that worked.
thank you very much :)