Thinkmill / Thinkmill/keystatic
Object layout ignored when entryLayout = `content`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
Currently, achieving something like this is impossible:
(The address object field at the bottom right)
This is because when entryLayout is set to content, the span values are set to ${FIELD_GRID_COLUMNS} due to the container's width.
https://github.com/Thinkmill/keystatic/blob/63c767bbb8b9bbc96c30535862bcccfbbc4ea346/packages/keystatic/src/form/fields/object/ui.tsx#L40-L42
When layout is specified, it should prioritize that value vs attempting to be responsive.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/keystatic/src/form/fields/object/ui.tsx at lines 40–42, where the object field calculates span values for entryLayout = content. Trace how the specified layout and container width are selected. Done means an explicit layout takes priority over the responsive container width, while the existing content layout behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100