-
Notifications
You must be signed in to change notification settings - Fork 13
feat: compact mode #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: compact mode #536
Conversation
|
Preview is ready. |
|
Playwright Test Component is ready. |
cfa2e03 to
d30d255
Compare
- Add isCompactMode prop to AsideHeaderGeneralProps - Add isCompactMode to renderFooter callback data - Pass isCompactMode through PageLayout and PageLayoutAside - Add compact-mode CSS class modifier to layout
- Add ITEM_HEIGHT_COMPACT constant (28px) - Add --_--item-height CSS variable with compact mode override - Update getItemHeight and getGroupHeight utilities for isCompactMode - Apply compact height to menu items, footer items, logo - Pass isCompactMode to CompositeBar components
- Add ASIDE_HEADER_COMPACT_WIDTH_COMPACT_MODE constant - Add --gn-aside-header-min-width override for compact mode - Update PageLayout size calculation for compact mode - Update CompositeBar mouse event detection - Update Header divider width
- Add --_--item-margin-inline CSS variable - Override to 6px in compact mode (default 10px) - Apply to logo-container, menu-items, footer, action items
- Add compact border-radius variables (2px collapsed) - Add HEADER_DIVIDER_HEIGHT_COMPACT constant (22px) - Update header divider dimensions for compact mode - Override --gn-aside-header-item-expanded-radius in compact mode
- Document isCompactMode prop in README (EN/RU) - Add CompactMode Storybook story - Add isCompactMode prop to AsideHeaderShowcase
3424792 to
71bf7b4
Compare
8cd56ec to
f790efb
Compare
src/components/AsideHeader/components/AllPagesPanel/AllPagesPanel.module.scss
Outdated
Show resolved
Hide resolved
src/components/AsideHeader/components/CompositeBar/Item/Item.module.scss
Show resolved
Hide resolved
| $class: &; | ||
| --gn-aside-header-min-width: 56px; | ||
|
|
||
| --_--item-icon-background-size: 36px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this variable no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I use the --_--item-height instead
src/components/AsideHeader/components/CompositeBar/CompositeBar.module.scss
Outdated
Show resolved
Hide resolved
| overflow: auto; | ||
| flex: 1; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these styles were removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because they're unused
src/components/AsideHeader/__tests__/AsideHeader.visual.test.tsx
Outdated
Show resolved
Hide resolved
|
navigation/src/components/AsideHeader/components/AllPagesPanel/AllPagesPanel.tsx Line 232 in a6ddc5c
Shouldn't the |
Nope, Because in this panel in compact mode should be regular margin between elements. |
38d603b to
95c1a63
Compare
No description provided.