agentmemory icon indicating copy to clipboard operation
agentmemory copied to clipboard

fix: tab-bar height unstable when switching tabs

Open hungtd119 opened this issue 6 months ago • 1 comments

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

hungtd119 avatar May 13 '26 10:05 hungtd119

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.

Deepak78dr avatar May 13 '26 11:05 Deepak78dr