Description
Version
1.54.0-next
Steps to reproduce
I’d like to resolve the open-to-a-pull-request
labeled issues that have been left unattended in UI mode, as well as a few others I came across during previous contributions—one by one, in small units.
Reproduction
On MacOS:
1. Run UI mode.
2. Execute the tests.
3. When one or more tests are running, stop the tests.
4. Grab the right resizer of the test window and shrink its width.
5. On Windows, the Actions and Metadata tabs truncate correctly, but on macOS the stacking context issue shown in the screenshot occurs.
Stacking Context
<SplitView> ← SC A: .split-view { position: relative }
├─ <div class="split-view-main"> ← Target to fix: .split-view-main { overflow: visible }
│ └─ <SplitView> ← SC B: .split-view { position: relative }
│ └─ <div class="split-view-sidebar">
│ └─ <TabbedPane>
│ ├─ <div class="toolbar"> ← SC C: .toolbar { position: relative }
│ │ └─ :after (header box-shadow) { z-index:100 } ← 1. Header issue point
│ └─ <div class="tab-content"> ← SC D: position: relative; overflow: hidden
│ └─ <ActionList>
│ └─ <ActionTreeView>
│ └─ <div class="tree-view-content"> ← SC E: position: relative; overflow: hidden auto
│ └─ <div class="tree-view-entry.selected"> ← z-index:10 (inside SC E) ← 2. tab-content (on select) issue point
Affected Components
-
SplitView > TabbedPane > actionsTab > Toolbar
- The toolbar’s box-shadow (introduced via
.toolbar:after
withz-index: 100
) remains visible when the sidebar is shrunk.
- The toolbar’s box-shadow (introduced via
-
SplitView > TabbedPane > actionsTab > ActionList > TreeView
- The selected tree item (
.tree-view-entry.selected
withz-index: 10
) overflows and leaves its background behind.
- The selected tree item (
Proposed Solution
I propose adding a dedicated clipping rule for SplitView—similar to how TabbedPane works—so that its children are always clipped.
.split-view-main {
display: flex;
flex: auto;
overflow: hidden; /* Added */
}
.split-view-sidebar {
display: flex;
flex: none;
overflow: hidden; /* Added */
}
.tabbed-pane {
display: flex;
flex: auto;
overflow: hidden;
}
If the team is okay with this approach, I’ll go ahead and create a PR :)
I’d appreciate any feedback in a comment.
Expected behavior
It should not overflow when the width is shrunk.
Actual behavior
When the width is shrunk on macOS, the TabbedPane toolbar’s box-shadow and selected item background overflow instead of being clipped.
Additional context
No response
Environment
# MacOS (Issue)
System:
OS: macOS 15.4.1
CPU: (12) arm64 Apple M2 Pro
Memory: 1.86 GB / 16.00 GB
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
Yarn: 4.2.2 - ~/.nvm/versions/node/v20.10.0/bin/yarn
npm: 10.8.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
pnpm: 9.1.0 - ~/.nvm/versions/node/v20.10.0/bin/pnpm
IDEs:
VSCode: 0.51.2 - /usr/local/bin/code
Languages:
Bash: 3.2.57 - /bin/bash
---
# Window (Working as Expected)
System:
OS: Windows 11 10.0.26100
CPU: (32) x64 AMD Ryzen 9 9950X 16-Core Processor
Memory: 36.97 GB / 61.66 GB
Binaries:
Node: 20.10.0 - C:\nvm4w\nodejs\node.EXE
Yarn: 4.9.1 - C:\nvm4w\nodejs\yarn.CMD
npm: 10.2.3 - C:\nvm4w\nodejs\npm.CMD
pnpm: 10.11.1 - C:\nvm4w\nodejs\pnpm.CMD
IDEs:
VSCode: 0.50.7 - C:\Users\home\AppData\Local\Programs\cursor\resources\app\bin\code.CMD