BrowserOS icon indicating copy to clipboard operation
BrowserOS copied to clipboard

feat(split-tabs): add top-bottom split panes

Open weicheng-hsu opened this issue 6 months ago • 3 comments

Summary

Adds top/bottom split creation from the split tabs toolbar button context menu.

  • Keeps the existing toolbar left-click behavior unchanged.
  • Adds context menu options for left/right and top/bottom split creation.
  • Adds browser test coverage for the toolbar context menu flow.

Design

This PR adds a layout parameter to the toolbar split creation path and passes it through to the split view UI.

The top/bottom option uses SplitTabLayout::kHorizontal, which MultiContentsView uses to lay out panes vertically and resize them by height ratio. Existing default split creation paths continue to use the current left/right layout.

Test plan

  • Built BrowserOS locally with full autoninja.
  • Manually verified top/bottom split creation from the toolbar button context menu.
  • Manually verified focus switching and divider resizing for top/bottom panes.

Related to: https://github.com/browseros-ai/BrowserOS/issues/928

https://github.com/user-attachments/assets/d8f25b6b-5229-44e0-b0ca-d0a8d31830ec

weicheng-hsu avatar May 16 '26 15:05 weicheng-hsu

All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar May 16 '26 15:05 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

weicheng-hsu avatar May 16 '26 15:05 weicheng-hsu

PR author is not in the allowed authors list.

greptile-apps avatar May 31 '26 11:05 greptile-apps

Thanks so much for contributing to BrowserOS! 🙏

We're doing some housekeeping on our PR queue and closing out PRs that have been open for more than 7 days. This isn't a reflection on your work — we really appreciate the time and effort you put in.

If this is still relevant, please feel free to reopen it or open a fresh PR and we'll take another look. Thanks again for being part of the project! 🚀

shadowfax92 avatar Jun 15 '26 22:06 shadowfax92