Skip to content

fix(workspace): improve preview panel sizing#31

Merged
Dustella merged 1 commit into
mainfrom
fix/issue-30-right-panel-width
Jul 13, 2026
Merged

fix(workspace): improve preview panel sizing#31
Dustella merged 1 commit into
mainfrom
fix/issue-30-right-panel-width

Conversation

@Dustella

Copy link
Copy Markdown
Member

Summary

  • make the preview panel default to 56% of the available workspace while preserving room for the main content
  • raise the safe preview width ceiling to 1440px and react to window/sidebar size changes
  • add expand/restore controls, double-click toggling, keyboard resizing, and a larger resize hit area
  • preserve stored user widths and cover the width calculations with unit tests

Closes #30

Testing

  • pnpm --filter @oh-my-github/client test (41 files, 230 tests)
  • pnpm typecheck
  • pnpm --filter @oh-my-github/client build
  • Playwright against the built Electron app at default and ultra-wide window sizes, including light/dark rendering, expand/restore, drag persistence, keyboard resize, and double-click restore

@Dustella
Dustella merged commit ec38b3d into main Jul 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fearful Request:关于代码预览窗格的建议

1 participant