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:
parent
ff01a045e3
commit
8123df0103
1 changed files with 6 additions and 1 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue