fix(studyset): put the license year beside the license field #823

Merged
raisondetredev merged 1 commit from refs/pull/823/head into main 2026-08-06 19:48:05 +02:00
raisondetredev commented 2026-08-06 19:47:44 +02:00 (Migrated from codeberg.org)

The copyright year sat on its own line under the license holder, in a
box 168px wide. Nothing but four digits can ever be typed into it — the
input formatters see to that — so the row it occupied was mostly empty,
and a box that wide invites prose into a field that cannot hold any.

License and Year now share one line: the license id takes whatever width
is left, the year is parked at the right end at a fixed 140px. The
warning rows, the holder, and the inherited-license note keep their
full-width places below, so only the two fields that belong together
moved.

140, not less: the help button is a 48px tap target and the content
padding takes another 24, which leaves the digits the rest. Measured
against a font whose digits are a full em wide — at 120 the text already
scrolls out of the box there, and every real font's digits are narrower
than that, so this has room to spare. The range error, several times
wider than the box, wraps beneath it rather than being clipped.

The two fields moved into builders. At the nesting depth of the sheet's
form they would otherwise wrap into an unreadable column; the field code
itself is unchanged.

The new test pins the arrangement rather than the numbers: same top
edge, year to the right of the license box, narrower than it, and four
digits that fit without scrolling.

Signed-off-by: Tizian 「ティツィアーン」 raisondetredev@pm.me

The copyright year sat on its own line under the license holder, in a box 168px wide. Nothing but four digits can ever be typed into it — the input formatters see to that — so the row it occupied was mostly empty, and a box that wide invites prose into a field that cannot hold any. License and Year now share one line: the license id takes whatever width is left, the year is parked at the right end at a fixed 140px. The warning rows, the holder, and the inherited-license note keep their full-width places below, so only the two fields that belong together moved. 140, not less: the help button is a 48px tap target and the content padding takes another 24, which leaves the digits the rest. Measured against a font whose digits are a full em wide — at 120 the text already scrolls out of the box there, and every real font's digits are narrower than that, so this has room to spare. The range error, several times wider than the box, wraps beneath it rather than being clipped. The two fields moved into builders. At the nesting depth of the sheet's form they would otherwise wrap into an unreadable column; the field code itself is unchanged. The new test pins the arrangement rather than the numbers: same top edge, year to the right of the license box, narrower than it, and four digits that fit without scrolling. Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-learn!823
No description provided.