683 B
683 B
Tab Flicker Fix
Issue
The user reports a flicker when clicking a tab before it becomes active.
Diagnosis
The current implementation of the active tab style uses borderBottom: isActive ? 2 : 0. This causes a layout shift (height change or content displacement) of 2px whenever the active state changes. This visual jump is perceived as a flicker.
Solution
Update the styling to maintain a constant border width but change the color.
- Change
borderBottomto always be2. - Change
borderColorto be'primary.main'when active and'transparent'when inactive.
Plan
- Modify
src/frontend/src/components/TabsBar.tsx. - Update
SortableTabstyles.