Skip to content

Commit 0af151a

Browse files
quanruclaude
andauthored
fix(report): prevent sidebar jitter when expanding case selector (#1344)
Fixed sidebar shifting 1-2 pixels when clicking to expand the playwright case selector. The issue was caused by adding a border only in the expanded state, causing a sudden height change. Solution: Added transparent border to the collapsed state, ensuring consistent height across both states. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 13b4f1d commit 0af151a

File tree

1 file changed

+1
-0
lines changed
  • apps/report/src/components/playwright-case-selector

1 file changed

+1
-0
lines changed

apps/report/src/components/playwright-case-selector/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
padding: 0 12px;
88
background: #F2F4F7;
99
border-radius: 8px;
10+
border: 1px solid transparent;
1011
cursor: pointer;
1112
display: flex;
1213
align-items: center;

0 commit comments

Comments
 (0)