Skip to content

fix(editor): keep workflow name visible on small screens + responsive toolbar tooltips#252

Merged
ckakgun merged 3 commits into
mainfrom
fix/workflow-name-small-screens
Jun 25, 2026
Merged

fix(editor): keep workflow name visible on small screens + responsive toolbar tooltips#252
ckakgun merged 3 commits into
mainfrom
fix/workflow-name-small-screens

Conversation

@ckakgun

@ckakgun ckakgun commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Problem

On smaller / common laptop widths the editor's workflow name disappeared. Measured at 1433px: the action toolbar (full text labels for ~10 buttons) was 1273px wide, leaving 0px for the title — which then got clipped by the header's overflow-x-hidden. flex-1 alone couldn't help because there was no leftover space to claim.

Fix

  • Defer toolbar text labels to min-[1600px] — screens that already fit (≥1600px) keep their labels exactly as before; below that the buttons collapse to icons so the name has room.
  • Reusable Tooltip component (ui/Tooltip.vue, radix-vue, portal-based so it isn't clipped by the header overflow). The toolbar icon buttons are wrapped so hovering reveals each action's name.
  • Title now uses flex-1 min-w-0 truncate (dropped the tiny fixed max-widths) and a title tooltip with the full name.
  • Phones: hide the two secondary icon buttons (Edit History, Page Guide) below sm so the name stays visible (≈88px at 380px vs 0 before).
  • Inline-edit <input> width capped so a long name can't overflow the header.

Verification (live, measured across widths)

width name width toolbar result
1700 visible (265px) + labels shown fits wide screens unchanged ✓
1599 689px full icons name visible ✓
1433 523px full icons name visible, no clipping ✓
380 88px (truncated) icons name visible (was 0) ✓

Tooltip popups confirmed appearing on hover; no toolbar clipping at any width (Save always within viewport).

Tests

Extended frontend/e2e/tab-workflows.spec.ts:

  • shows the workflow name without overflow on small screens — name visible, within viewport, truncated; inline-edit input within bounds.
  • collapses toolbar labels to icons when tight and keeps them when wide, with tooltips — labels visible at 1700px, hidden at 1280px, and a hover tooltip popup appears.

Run: ./run_e2e.sh tab-workflows.spec.ts

Checks

  • bun run typecheck
  • bun run lint
  • E2E not run via the Docker harness locally (Docker daemon off), but behavior verified directly against the running dev app.

🤖 Generated with Claude Code

ckakgun and others added 3 commits June 25, 2026 12:52
The header title wrapper used `hidden sm:block min-w-0` with no flex claim,
so on narrow screens the shrink-0 button group squeezed it to ~0 width and
the workflow name disappeared. Give the wrapper `flex-1`, let the title fill
available width and truncate (dropping fixed tiny max-widths), cap the inline
edit input so a long name can't overflow the header, and add a title tooltip.

Add a Playwright test asserting the name stays visible, within the viewport,
and truncated at a 380px viewport.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…me visible

On constrained widths the action toolbar's ~10 text labels consumed the whole
header row, squeezing the workflow name to 0px (measured) and clipping it.

- Defer toolbar text labels to >=1600px so screens that already fit keep their
  labels unchanged; below that, buttons collapse to icons so the name has room.
- Add a reusable portal-based Tooltip (radix-vue) and wrap the toolbar icon
  buttons so hovering reveals each action's name (works regardless of header
  overflow clipping).
- Give the title flex-1/min-w-0 + truncate so it always claims available space.
- Hide the two secondary icon buttons (Edit History, Page Guide) below `sm` so
  the name stays visible on phones (verified ~88px at 380px vs 0 before).

Verified live across 380/1280/1433/1599/1700px: name visible at every width,
labels return at >=1600px, no toolbar clipping, tooltips appear on hover.

Extend the Playwright workflow spec with label-collapse and tooltip coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The icon-only toolbar buttons lost their accessible names when labels collapse
below 1600px, breaking the import/export E2E test (which finds the Download
button via getByRole name) and degrading accessibility.

Add aria-label to every toolbar button so they keep a stable accessible name
regardless of whether the text label is visible. Verified live that
getByRole("button", { name: "Download" }) resolves at the 1280px CI viewport.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ckakgun ckakgun merged commit 800bcea into main Jun 25, 2026
2 checks passed
@ckakgun ckakgun deleted the fix/workflow-name-small-screens branch June 25, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant