Skip to content

fix(desktop): extend diff row background on horizontal scroll#3637

Merged
esengine merged 1 commit into
esengine:main-v2from
whale-fall-ouo:fix/diff-row-horizontal-scroll-bg
Jun 11, 2026
Merged

fix(desktop): extend diff row background on horizontal scroll#3637
esengine merged 1 commit into
esengine:main-v2from
whale-fall-ouo:fix/diff-row-horizontal-scroll-bg

Conversation

@whale-fall-ouo

Copy link
Copy Markdown
Contributor

Add min-width: min-content to .diff__row and .inline-diff__row so background colors cover the full line width when horizontal scrolling is active.

Fixes #3599

Add min-width: min-content to .diff__row and .inline-diff__row so
background colors cover the full line width when horizontal scrolling
is active.

Fixes esengine#3599

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 9, 2026
@whale-fall-ouo

Copy link
Copy Markdown
Contributor Author

修改前修改前
修改后
修改后

@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.

Correct fix — in a horizontally scrolling container the flex row gets clamped to the container width, so the add/del background stopped short of the scrolled content. min-content is exactly the right tool. Thanks!

@esengine esengine enabled auto-merge (squash) June 11, 2026 02:07
@esengine esengine merged commit cd37d14 into esengine:main-v2 Jun 11, 2026
10 checks passed
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]: 文本编辑显示框删除新增颜色渲染不全

3 participants