Skip to content

Conversation

@kkirik
Copy link
Contributor

@kkirik kkirik commented Jan 5, 2026

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@kkirik kkirik force-pushed the feat/compact-mode-2 branch from cfa2e03 to d30d255 Compare January 12, 2026 12:19
olaslo and others added 15 commits January 12, 2026 15:44
- 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
@kkirik kkirik force-pushed the feat/compact-mode-2 branch from 3424792 to 71bf7b4 Compare January 12, 2026 12:53
@kkirik kkirik force-pushed the feat/compact-mode-2 branch from 8cd56ec to f790efb Compare January 12, 2026 13:42
@kkirik kkirik marked this pull request as ready for review January 12, 2026 14:42
$class: &;
--gn-aside-header-min-width: 56px;

--_--item-icon-background-size: 36px;
Copy link
Collaborator

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?

Copy link
Contributor Author

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

overflow: auto;
flex: 1;
}

Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they're unused

@DarkGenius
Copy link
Collaborator

Shouldn't the isCompactMode be passed here?

@kkirik
Copy link
Contributor Author

kkirik commented Jan 13, 2026

Shouldn't the isCompactMode be passed here?

Nope, Because in this panel in compact mode should be regular margin between elements.

@kkirik kkirik force-pushed the feat/compact-mode-2 branch from 38d603b to 95c1a63 Compare January 13, 2026 12:49
@kkirik kkirik merged commit deb527c into v5 Jan 14, 2026
3 checks passed
@kkirik kkirik deleted the feat/compact-mode-2 branch January 14, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants