fix: Desktop sidebar clips logo after collapse-mode UX changes (#187) #191
Reference in New Issue
Block a user
Delete Branch "issue-187-fix-sidebar-logo-clipping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #187
Summary
The desktop sidebar header clips the MotoVaultPro logo after the collapse-mode changes in #176. The logo container (196px) exceeded available flex space (182px) by 14px, and
overflow: hiddenon the logo Box made the clipping visible.Changes
Single-file CSS fix to
frontend/src/components/Layout.tsx:px1(16px padding)0.5(8px padding)flex1minWidth0maxWidth180(hardcoded px)'100%'(container-relative)Approach
Flex-based layout: let the logo Box naturally fill available space instead of fighting fixed pixel constraints.
flex: 1+minWidth: 0is the standard CSS pattern for flexible content in flex containers.Test Plan
npm run lint-- PASSnpm run type-check-- PASS