feat(split-tabs): add top-bottom split panes
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
All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.
I have read the CLA Document and I hereby sign the CLA
PR author is not in the allowed authors list.
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! 🚀