Thinkmill / Thinkmill/keystatic

Object layout ignored when entryLayout = `content`

Open
#1,462 0 comments 1 reaction 0 assignees View on GitHub

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:

Image (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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.