Cleaner UI for collapsed Matrix blocks #18484
-
|
There's been some discussion of (optionaly?) using the Card UI as the collapsed state for Matrix blocks. While I think that's a good idea, I would like to propose some simple UI improvements for collapsed matrix blocks, without making them full-on cards. Right now the collapsed state is a just too noisy and hard to parse: Current UI
Some problems here:
Proposed UIA "cleaner" and more "author friendly" solution might be something like the following:
Notice that:
For full disclosure, I'd like to add that part of the inspiration for this came from using the "flexible content" field type from ACF Pro, which looks like this (with extra utility ui visible on hover):
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Admittedly, the Card UI, when reduced to just the title, is not far from the above suggested UI 🙂:
|
Beta Was this translation helpful? Give feedback.
-
|
On the other hand, my proposal is mainly just CSS (easier to implement?) and, perhaps, sidesteps the problem of having two identical pieces of UI that behave differently (Cards that expand and cards that open in a slideout). |
Beta Was this translation helpful? Give feedback.
-
|
IMO, the most important purpose of being able to collapse blocks, is to make it easier to drag'n'drop blocks to re-arrange their order. Their minimal height really helps with that. So I'd be extremely wary of any change that would make the collapsed blocks meaningfully larger/taller. I also don't really agree that there is "too much emphasis is given on the block type". I think the design and positioning of the entry type icon + name needs to be identical as it is for the expanded state, otherwise it would be disorienting for authors when blocks become collapsed. It's the one element that "anchors" the collapsed/expanded states, if that makes sense. I do agree that the "preview" is often an unintelligible blob. My money would be on using entry types' "UI Label" instead. The UI Label defaults to the Title field, but Craft 5.9 added the option to customise the UI Label format, which means you can put anything in there. Entry types without a UI Label could fall back to the current behavior. TL;DR – I'd vote to keep the design of collapsed blocks as-is, but use entry types' UI Label instead of the auto-generated "preview" text instead, if there is a UI label 😊 |
Beta Was this translation helpful? Give feedback.
-
|
Resolved this for Craft 5.10: going forward, entries’ UI labels will be used as their collapsed block preview text, whenever possible. (0278365) |
Beta Was this translation helpful? Give feedback.




Resolved this for Craft 5.10: going forward, entries’ UI labels will be used as their collapsed block preview text, whenever possible. (0278365)