fix(sidebar): raise resizable page-nav min width from 320 to 384px so StreamHeader segments and action icons stop clipping at the floor

This commit is contained in:
heaven 2026-05-16 20:31:11 +03:00
parent 2d101a40fc
commit ebf2cfe07b

View file

@ -5,7 +5,12 @@ import {
} from './utils/atomWithLocalStorage'; } from './utils/atomWithLocalStorage';
export const SIDEBAR_WIDTH_KEY = 'vojo_sidebar_width'; 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; export const SIDEBAR_WIDTH_DEFAULT = 416;
const readSidebarWidth = (key: string): number => { const readSidebarWidth = (key: string): number => {