Skip to content

[desktop] 历史面板窄窗口下让预览区自适应展开#3544

Merged
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/history-layout-narrow
Jun 8, 2026
Merged

[desktop] 历史面板窄窗口下让预览区自适应展开#3544
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/history-layout-narrow

Conversation

@Li-Charles-One

Copy link
Copy Markdown
Contributor

问题

历史面板在窄窗口/竖屏模式下,右侧预览区被严重压缩,没有自适应展开。根因是 .history-content 的 grid 模板用了 minmax(340px, 0.38fr) 作为列表列的下限,导致 760px 以下窗口中列表强制占 340px,预览区被挤压。

改动

  • desktop/frontend/src/styles.css:5964 — 列表列下限从 340px 改为

The .history-content grid used minmax(340px, 0.38fr) for the list column,
which forced a 340px minimum even in narrow viewports and squeezed the
preview pane on the right. Lower the floor to 0 and cap the list at
40vh inside the <=760px breakpoint so the preview gets room to breathe.

Fixes #3538
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 8, 2026

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice responsive fix for the narrow history panel. Pure CSS, behaves as expected. Thanks!

@esengine esengine enabled auto-merge (squash) June 8, 2026 09:00
@esengine esengine merged commit 7f5fa3d into esengine:main-v2 Jun 8, 2026
10 checks passed
@Li-Charles-One Li-Charles-One deleted the fix/history-layout-narrow branch June 8, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants