It is nearly impossible to create field layouts that work in entry forms, live preview and element flyouts #16296
Closed
MoritzLost
started this conversation in
General
Replies: 2 comments 3 replies
-
Thanks for the feedback! I’ve resolved this for Craft 5.6 via #16303. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Sorry to comment on a closed issue, but the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that entry types can be reused, it's very common to have entry types that will be edited in multiple contexts:
What I found is that it's nearly impossible to optimize field layouts that work well in all of those contexts. A lot of that is due to how field layouts are made responsive. In small containers (element flyouts and live preview), field layouts are forced into two columns instead of four, and field widths are adjusted:
This is already a problem, as using a 3/4 + 1/4 row will cause the entire field layout to shift in those contexts. However, the bigger issue is that the default live preview and element fly-out containers are just too small for a two-column layout. For those fields to be usable in live preview, you need to set most fields to full width:
But that's a terrible waste of space in a regular entry form:
In this context, using smaller fields is much more efficient:
But is barely usable in live preview / element flyouts:
I'm not sure I have a good solution, but some ideas:
Beta Was this translation helpful? Give feedback.
All reactions