Skip to content

Answer row grows by 2px when its Undo button appears #4287

Closed

Description

@leaf-agent

CI run 40379977292, at dbdd5ea4bbb5, fails tests/browser/test_render_floating_panel.py::test_a_press_arriving_in_a_line_of_answers_moves_nothing[False].

The test opens On me, replaces the first .lf-fp-answers row with Answered., measures it, then appends a button with class .lf-fp-answer and text Undo. Its height changes from 28px to 30px; the assertion at line 4303 expects the height to remain within 0.5px. This is a synchronous geometry assertion, not a shift-watch teardown failure. The touch variant passes.

Both variants passed in preceding push run 40371400453 at 300bd56d0c7f. The report session read both runs' logs but did not reproduce locally or establish the introducing change. Begin with a focused reproduction on current main and compare the answer-row and button sizing rules; distinguish a changed interface from a stale assertion before choosing the repair.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 26, 2026
  2. leaf-agent commented on Oct 26, 2026

    @leaf-agent
    CollaboratorAuthor

    #4290 fixes the answer-row sizing and passed CI at b54ff9f417. The padding introduced by #4284 was consuming the row's reserved button height; the minimum now sizes its content instead. The regression uses Undo's actual styling and passes on mouse and touch, while four base/head card comparisons remain visually unchanged.

    Review and CI are complete. The active tend-land run owns the final merge.

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

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions