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: hidden on the logo Box made the clipping visible.
Changes
Single-file CSS fix to frontend/src/components/Layout.tsx:
Property
Before
After
Logo Box px
1 (16px padding)
0.5 (8px padding)
Logo Box flex
(none)
1
Logo Box minWidth
(none)
0
Img maxWidth
180 (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: 0 is the standard CSS pattern for flexible content in flex containers.
Test Plan
Expanded sidebar (256px): full "MOTOVAULTPRO" text and slogan visible at 1920px
Expanded sidebar (256px): full logo visible at 1280px
Collapsed sidebar (64px): logo hidden, no artifacts
Collapse/expand animation smooth
Mobile layout unaffected
npm run lint -- PASS
npm run type-check -- PASS
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: hidden` on the logo Box made the clipping visible.
## Changes
Single-file CSS fix to `frontend/src/components/Layout.tsx`:
| Property | Before | After |
|----------|--------|-------|
| Logo Box `px` | `1` (16px padding) | `0.5` (8px padding) |
| Logo Box `flex` | (none) | `1` |
| Logo Box `minWidth` | (none) | `0` |
| Img `maxWidth` | `180` (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: 0` is the standard CSS pattern for flexible content in flex containers.
## Test Plan
- [ ] Expanded sidebar (256px): full "MOTOVAULTPRO" text and slogan visible at 1920px
- [ ] Expanded sidebar (256px): full logo visible at 1280px
- [ ] Collapsed sidebar (64px): logo hidden, no artifacts
- [ ] Collapse/expand animation smooth
- [ ] Mobile layout unaffected
- [x] `npm run lint` -- PASS
- [x] `npm run type-check` -- PASS
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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