Thinkmill / Thinkmill/keystatic

`fields.number`, `fields.select` with `description` does not use the full width

Open
#1,298 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

When I use a fields.number with a longer description the column for title and description are very small.
The same is true for fields.select, see example in https://github.com/Thinkmill/keystatic/issues/1419.

Bildschirmfoto 2024-09-02 um 10 37 51

When using a .text both use the full with.

Bildschirmfoto 2024-09-02 um 10 39 01

It would be ideal to only reduce the input width, not the whole column width in those cases.

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 by locating the implementations of fields.number, fields.select, and fields.text, then compare how their input and column widths are calculated. Reproduce the issue using a longer description and the linked select example; done means number and select reduce only the input width while the title and description column keeps the available width.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.