Skip to content

Builder is unusable on OpenStation's phone layer: rails leave slivers, canvas and toolbar overflow, Save unreachable, taps add nothing #55

Closed

Description

@juanlentino

What happens

Open the builder on a phone (OpenStation's phone layer, data-os-mode="mobile", viewport ≤ 767px). The window is forced full-screen by the shell, but the builder still lays itself out as if it had a desktop's width, and the parts of it that fold do not fold cleanly.

Reproduced at 375×812 on WordPress 7.1 + OpenStation 1.1.9 + AllTerrain Forms 1.1.0 (main, 03116e1), with a form made from the Contact template. Every number below was read from the DOM at that size.

1. The folded rails leave 28px slivers over the canvas

At ≤ 640px the @container rule sets .atfb__body { grid-template-columns: 0px minmax(0,1fr) 0px }, so the palette and inspector tracks are 0px — but both rails keep padding: 14px. A 0px track plus 14px of padding on each side is a 28px box, and overflow: hidden clips at the padding edge, so the first ~14px of the palette's content stays painted. That is the TE, CH fragments down the left edge (the first letters of the Text / Choice group titles), with the canvas drawn over them. The inspector does the same on the right edge; it is invisible (opacity: 0) but still 28px wide.

Measured: palette width: 29px, scrollWidth: 135, inspector width: 29px, x: 366 on a 357px root.

2. The canvas overflows the window horizontally

.atfb-canvas__list is a grid with no explicit column, so its one implicit auto track is sized to the widest card's min-content. The Name card's min-content is 376px inside a 313px list, and every card is laid out at that width, so the right edge of every card runs off-screen (the shortcode box above them, which is a normal block, fits).

The min-content is high because the card preview (.atfb-preview.atf-form) has no atf-form container ancestor inside the builder — form.css only declares container-name: atf-form on .atf-form-wrap, which is the front-end wrapper. So the @container atf-form (max-width: 560px) rule that stacks a composite field's parts never fires in a card, and the Name field keeps grid-template-columns: repeat(2, 1fr) with two 163px inputs.

Measured: .atfb-canvas__list grid-template-columns: 376.688px (client width 313); .atfb-card width 377; .atf-composite__parts 163.344px 163.344px.

3. The tab strip and the toolbar overflow, and Save is unreachable

.atfb__bar wraps its three children onto their own rows (good), but inside them:

  • .atfb-tabs is flex-wrap: nowrap and 405px wide in a 357px bar — Confirmations is clipped to Confi….
  • .atfb-bar__right is 885px wide. The window clips it after Export, so Import, Validate YAML, Preview, Entries and Save cannot be reached. A form edited on a phone cannot be saved from the toolbar.

4. Tapping a palette chip adds nothing on a phone

A chip adds a field only through onClickOnly, the callback the shell's drag manager fires when a press never became a drag. On a phone wp.os.dragManager.start() returns null (the shell refuses drags under the mobile stamp, documented in docs/mobile.md), so the callback never exists, and the chip's own click listener only cancels the click after a drag. Result: a tap on a chip does nothing.

Measured: dispatched pointerdown → pointerup → click on .atfb-chip[data-atf-type="text"]; card count stayed at 5; dragManager.start(...) returned null.

Combined with (1) — the palette is folded to 0px at ≤ 640px with nothing that opens it — there is no way to add a field to a form on a phone at all.

5. Selecting a field opens a 240px inspector beside a 117px canvas

At ≤ 640px, .atfb--has-selection .atfb__body { grid-template-columns: 0px minmax(0,1fr) 240px }. On a 357px window that leaves 117px of canvas: the cards are cut to a third and the inspector is a narrow column. The only way to close the inspector is a click on the canvas's empty space, which that strip barely has; the inspector has no Done/Back control. OpenStation's own narrow apps (Comments, WP Explorer) show one pane at a time with a Back control in the pane's head.

The other windows

Checked at the same size: Theme Studio and Analytics fold correctly (nothing overflows; the swatch strip scrolls sideways by design). Entries does not overflow, but stacks a 220px-tall list above the detail pane rather than showing one pane at a time. Not broken; noted for a follow-up.

Where

  • assets/css/builder.css — the @container ( max-width: 900px ) / ( max-width: 640px ) blocks near line 290, .atfb-canvas__list / .atfb-card, .atfb-tabs, .atfb-bar__right, .atfb-preview.
  • src/builder.ts — paletteChip() (~line 1747) for the tap, and the inspector for a narrow-width Done control.

Expected

On a phone the builder should read like OpenStation's own apps do under a narrow container: no stray slivers, nothing clipped horizontally, every toolbar action reachable, a tap on a palette chip appends the field, and the inspector takes the whole width with a way back to the canvas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions