Skip to content

fix: check timestamp fit instead of its shrink weight - #5104

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-5087
Nov 2, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-5087

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The workflow test required a timestamp's flex-shrink to be zero, contradicting #5043's intentional order: annotations give up room before the time, then the author. Its failure showed both author and time still inside their containers, and the captured phone view shows the timestamp whole.

Replace the CSS implementation assertion with a rendered text-fit check (scrollWidth <= clientWidth). The test still exercises Queued → Delivered → On it and checks containment, node identity, absence of reinsertion and absence of animation. This changes no product behavior and preserves #5043's layout.

Validation: reproduced the reported assertion on main; the corrected workflow test and test_a_squeezed_head_gives_up_one_part_at_a_time pass (2 tests). Ruff checks and formatting pass.

Closes #5087 — automated triage

The shared header layout in #5043 deliberately lets the time shrink after annotations. The workflow test still required a zero shrink weight even while its timestamp remained whole. Check rendered text fit instead, retaining author and time containment and the workflow transition, identity and animation checks.

Closes #5087
@max-sixty
max-sixty merged commit ee73fab into main Nov 2, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-5087 branch November 2, 2026 10:33
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.

Message workflow metadata changes its timestamp width

2 participants