Closed VIPStephan closed 2 years ago
@VIPStephan Could you please post the blueprint YAML as text in a Markdown code block:
```yaml
your blueprint
```
This makes it a lot easier for us to reproduce and debug this. Thanks!
name: Tabelle
icon: menu
preview: table
fields:
rows:
type: structure
label: Einträge
fields:
kuenstler:
label: Künstler
type: text
help: Formatierungen wie \**kursiv*\* und \*\***fett**\*\* sind möglich.
kuenstler_link:
label: Link
type: url
media:
type: blocks
label: Medien
fieldsets:
- audio
video_link:
name: Video
icon: video
label: "{{ video_title }}"
fields:
video_url:
label: YouTube-/Vimeo-URL
type: url
video_title:
label: Titel
type: text
Thanks! I can reproduce the same issue with a simple structure
field outside of blocks
:
fields:
structure:
type: structure
label: Einträge
fields:
kuenstler:
label: Künstler
type: text
kuenstler_link:
label: Link
type: url
media:
type: text
columns:
kuenstler:
width: 1/2
kuenstler_link:
width: 1/2
So the issue is that the max-width: 65em
media query of the StructureField
doesn't behave correctly if the structure columns have custom widths. Have I understood the problem correctly @VIPStephan?
Yeah, that sounds about right. The custom widths should only be applied if the system doesn’t hide columns itself. Or the columns that are currently hidden by default shouldn’t be hidden if custom widths are assigned (up to a certain breakpoint).
✅
Describe the bug
There seems to be an inconsistency with responsive layout adjustments: I have a table block with a structure field with three columns by default. I want only two columns to show up in the block preview, so I’ve specified two columns with 1/2 width each. This looks fine in the table preview but it also uses the width setting in edit mode where it just shows the first field, and it screws up the width.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If columns are hidden by the system due to CSS media queries, column/width settings should be ignored or adapted.
Screenshots
Blueprint setup (~/site/blueprints/blocks/table.yml):
Default table preview in the main area without column specification:
Default table preview in the edit mode overlay:
Table preview in the main area with columns specified:
Table preview in edit mode overlay with columns specified:
Kirby Version
3.5.7.1
Desktop (please complete the following information):