feat(trace-viewer): allow hiding browser panel
Fixes https://github.com/microsoft/playwright/issues/41062
This adds a trace viewer toolbar toggle that hides the browser snapshot panel and moves the details drawer into the central area. The action list remains available, so users can inspect API/network-heavy traces with more space without losing navigation.
Tests:
- npm run ctest -- tests/library/trace-viewer.spec.ts -g "should have network requests|should expand network details when browser panel is hidden"
- npm run tsc -- --pretty false
- npm run build
Any change for a screenshot here?
Sure, here's the browser panel hidden state:

Test results for "MCP"
1 failed
:x: [chromium] › mcp/cli-webstorage.spec.ts:20 › localstorage-list shows no items when empty @mcp-macos-latest-chromium
7353 passed, 1122 skipped
Merge workflow run.
Test results for "tests 1"
2 flaky
:warning: [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`:warning: [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`
39624 passed, 744 skipped
Merge workflow run.
This has bad UX (unexpected and varying location of the button when shown and hidden).