Files
deepseek-harness/apps/web/tests/snapshots/question-composer/ui.expected.md
T
Chinesezjc 9dd57a25c5 fix(ui-question): stop option rows absorbing the capped card's shortfall
The question composer card is capped against the viewport and scrolls its
option list. `.options` is a flex column whose children defaulted to
`flex-shrink: 1`, so a short seat shrank the rows before overflowing the
scroll container: a row collapsed to its 42px minimum while `.optionCopy`
kept the taller height its wrapped copy needs, and `align-items: center`
then painted that copy outside the row's border box — over the question
title above and the next row below. Measured 6.5px of spill at 900x440 on
the shipped client, 10px at 380px tall, with `.options` reporting
scrollHeight === clientHeight and therefore offering no scrollbar.

`.option` and `.custom` now declare `flex-shrink: 0`, so the shortfall
reaches the scroll container that already owns `overflow-y: auto` — the
behavior the cap was designed for. Only rows whose copy wraps could
reproduce this, which is why the recorded scenario now asks a question
with long option descriptions; the web e2e asserts at three squeezed seat
heights that every row's children stay inside its border box, guarded
against holding vacuously by requiring a wrapped row and a scrolling list.
2026-07-27 19:20:33 +08:00

768 B

  • region "Which color do you prefer?":
    • text: Pick one
    • heading "Which color do you prefer?" [level=2]
    • text: 1 / 1
    • button "上一题" [disabled]:
      • img
    • button "下一题" [disabled]:
      • img
    • button "放弃整组问题":
      • img
    • radiogroup:
      • radio "Blue":
        • text: 1 Blue A cool recessive hue that reads as calm and trustworthy in long reading sessions and dense dashboards.
        • img
      • radio "Green":
        • text: 2 Green A restful mid-spectrum hue with the highest perceived brightness, easiest on the eye over long sessions.
        • img
      • button "其他,请填写自定义答案":
        • img
        • text: 其他,请填写自定义答案
    • status
    • button "跳过本题"
    • button "提交" [disabled]