agentmemory
agentmemory copied to clipboard
fix: tab-bar height unstable when switching tabs
Problem
Tab-bar collapses/shifts height when clicking between tabs, making the UI feel unstable.
Root cause: .tab-bar only had overflow-x: auto with no fixed
height.
When scroll behavior changed, the bar height shifted.
Fix
Replace min-height with explicit height: 48px + flex-shrink: 0:
.tab-bar {
height: 48px;
flex-shrink: 0;
}
Steps to reproduce
1. Open viewer
2. Click rapidly between tabs
3. Observe tab-bar height flickering
Environment
- File: src/viewer/index.html
Fix
Replace min-height with an explicit fixed height and prevent shrinking:
.tab-bar { height: 48px; flex-shrink: 0; }
Instead of:
.tab-bar { min-height: 48px; }
This keeps the tab bar consistently 48px tall and prevents layout shifts during tab changes.