github iantrich/list-card 1.1.1

3 hours ago

New: column_width

Each column can now set its own width, so a narrow "Size" column no longer takes the same space as a long "Name" column. Requested in #90.

columns:
  - title: Name
    field: name
    column_width: 2fr
  - title: Size
    field: size
    column_width: 80px
  • Accepted values: px, %, em, rem, ch, vw, vh, fr, auto, min-content and max-content. A bare number means fr, so 2 is the same as 2fr.
  • Default: columns without column_width split the remaining space equally, so existing configs look the same as before.
  • Invalid values: these fall back to the equal-width default instead of breaking the layout.
  • Editor: the visual editor has a new Column width field. The existing image-size field is now labelled Image width to avoid confusion. The width option itself is unchanged.
  • card-mod users: the grid now uses a --list-card-template CSS variable instead of --list-card-columns. Styles that read the old variable will need updating.

Thanks

Thanks to @Danielsan9998 for suggesting this in #90.

PR: #91

Don't miss a new list-card release

NewReleases is sending notifications on new releases.