fix(playground): prevent model group option stretching (#6120)

* fix(playground): prevent model group option stretching

- keep group options at a fixed 2rem height and align them to the top.
- organize layout code in a dedicated module and cover layout and scrolling behavior.

* docs(web): strengthen frontend testing requirements

- require regression coverage for behavior changes, bug fixes, and UI states.
- define module-scoped test organization, stable assertions, mocks, and verification rules.
This commit is contained in:
QuentinHsu
2026-07-20 18:03:49 +08:00
committed by GitHub
parent 16bfae1750
commit 2ef4cfff9c
4 changed files with 86 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ import { cn } from '@/lib/utils'
import {
modelGroupSelectorLayoutClasses,
scrollSelectedOptionIntoView,
} from './model-group-selector-layout'
} from './model-group-selector/layout'
interface ModelOption {
label: string