From ebf2cfe07bac2a43da325222f938d027d79fa4a3 Mon Sep 17 00:00:00 2001 From: heaven Date: Sat, 16 May 2026 20:31:11 +0300 Subject: [PATCH] fix(sidebar): raise resizable page-nav min width from 320 to 384px so StreamHeader segments and action icons stop clipping at the floor --- src/app/state/sidebarWidth.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 => {