diff --git a/src/app/state/sidebarWidth.ts b/src/app/state/sidebarWidth.ts index 5635095c..a13ff5ee 100644 --- a/src/app/state/sidebarWidth.ts +++ b/src/app/state/sidebarWidth.ts @@ -5,7 +5,12 @@ import { } from './utils/atomWithLocalStorage'; export const SIDEBAR_WIDTH_KEY = 'vojo_sidebar_width'; -export const SIDEBAR_WIDTH_MIN = 320; +// Floor must fit the StreamHeader tabs row in full: 3 segment buttons +// (Личные/Каналы/Роботы — RU is the widest locale) plus the two +// action icons (Plus / Search) plus the row's 8px horizontal padding. +// Measured at ≈378px in RU; 384 gives a few px of breathing room and +// keeps the icon cluster from clipping at the curtain's right edge. +export const SIDEBAR_WIDTH_MIN = 384; export const SIDEBAR_WIDTH_DEFAULT = 416; const readSidebarWidth = (key: string): number => {