You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reserve right-side title bar space for native Windows controls so the Connection button stays visible.
Extract platform-specific title bar spacing into a shared helper while keeping Linux custom controls behavior unchanged.
Add regression tests for Windows, Linux, and macOS title bar spacing rules.
🧪 How to Test
Tested locally
Added/updated tests
No tests needed
bunx vitest run --silent='passed-only' 'src/features/Electron/titlebar/layout.test.ts'
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.37%. Comparing base (9eca3d2) to head (cf6b340). ⚠️ Report is 5 commits behind head on canary.
The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💻 Change Type
🔗 Related Issue
N/A
🔀 Description of Change
Reserve right-side title bar space for native Windows controls so the Connection button stays visible.
Extract platform-specific title bar spacing into a shared helper while keeping Linux custom controls behavior unchanged.
Add regression tests for Windows, Linux, and macOS title bar spacing rules.
🧪 How to Test
Tested locally
Added/updated tests
No tests needed
bunx vitest run --silent='passed-only' 'src/features/Electron/titlebar/layout.test.ts'bunx eslint 'src/features/Electron/titlebar/TitleBar.tsx' 'src/features/Electron/titlebar/layout.ts' 'src/features/Electron/titlebar/layout.test.ts'bun run type-check📸 Screenshots / Videos
📝 Additional Information
No API or migration changes.