Skip to content

fix(desktop): align per-model context window cards - #9748

Open
zcxads666 wants to merge 1 commit into
esengine:main-v2from
zcxads666:codex/fix-provider-model-context-window-layout
Open

fix(desktop): align per-model context window cards#9748
zcxads666 wants to merge 1 commit into
esengine:main-v2from
zcxads666:codex/fix-provider-model-context-window-layout

Conversation

@zcxads666

Copy link
Copy Markdown
Contributor

Summary

  • Fix a layout regression in the per-model context window cards.
  • Constrain long model names to two lines and expose the full name via a tooltip.
  • Keep the card grid responsive without horizontal overflow.
  • Add focused model-picker and responsive layout tests.

Issues

Fixes #9747

Verification

  • pnpm exec tsx src/__tests__/provider-model-refresh.test.ts — 28 passed
  • pnpm exec tsx src/__tests__/provider-editor-model-picker.test.tsx — 55 passed
  • pnpm exec tsx src/__tests__/typography-overflow-contract.test.ts — 188 passed
  • pnpm test:settings-responsive — 27 passed
  • git diff --check origin/main-v2...HEAD — passed
  • Manual browser verification at 1471px, 1100px, and 900px viewport widths:
    • No horizontal overflow.
    • Long model names remain accessible through tooltips.
    • Context inputs and model refresh behavior work as expected.

Screenshots

Before

企业微信截图_49361651-953a-459e-b1ea-5f753ecb23cc

After

企业微信截图_ef8043ad-9cd9-418b-b725-0443de0d0fbc

Documentation impact

Documentation-impact: none - this is a visual layout fix with no changes to user workflows, configuration, CLI behavior, or APIs.

Cache impact

Cache-impact: none - this change only affects Desktop React/CSS layout; provider-visible prompts and tool behavior are unchanged.
Cache-guard: N/A - no cache-sensitive path was changed.
System-prompt-review: N/A

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Desktop 设置页「模型上下文窗口」卡片布局错位

1 participant