getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Table block: width in `columns` property ignored #3323

Closed silllli closed 3 years ago

silllli commented 3 years ago

Describe the bug

In the preview of the table block (blocks/table) the width settings of the columns property are being ignored.

To Reproduce
Steps to reproduce the behavior:

  1. Create a block that extends blocks/table
  2. Set column widths under the columns property
  3. Use the block and add an entry
  4. Look at the preview

Sample code:

name: Tabelle
extends: blocks/table
fields:
  rows:
    type: structure
    columns:
      entry:
        width: 1/3
      description:
        width: 2/3
    fields:
      entry:
        type: text
        counter: false
        label: Eintrag
        width: 1/3
      description:
        type: writer
        label: Erläuterung
        marks:
          - bold
          - link
        width: 2/3
    label: Einträge

Expected behavior

The columns having the set widths.

Screenshots

Bildschirmfoto 2021-05-12 um 17 08 37

Kirby Version

3.5.5

Console output

No console output.

Desktop (please complete the following information):

bastianallgeier commented 3 years ago