Skip to content

Commit

Permalink
[navigation]fix: add xxl and xxxl for left nav responsiveness (#8289)
Browse files Browse the repository at this point in the history
* fix: add xxl and xxxl

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update snapshot

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe authored Sep 24, 2024
1 parent 9fd0f0b commit 6fd284f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
EuiSpacer,
EuiHideFor,
EuiFlyoutProps,
EuiShowFor,
} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import React, { useMemo } from 'react';
Expand Down Expand Up @@ -368,7 +369,7 @@ export function CollapsibleNavGroupEnabled({
return (
<>
<EuiHideFor sizes={['xs', 's', 'm']}>{rendeLeftNav()}</EuiHideFor>
<EuiHideFor sizes={['xl', 'l']}>
<EuiShowFor sizes={['xs', 's', 'm']}>
{isNavOpen
? rendeLeftNav({
type: 'overlay',
Expand All @@ -378,7 +379,7 @@ export function CollapsibleNavGroupEnabled({
ownFocus: true,
})
: null}
</EuiHideFor>
</EuiShowFor>
</>
);
}
3 changes: 2 additions & 1 deletion src/core/public/chrome/ui/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ export function Header({
})}
{renderNavToggleWithExtraProps({
flush: 'both',
className: 'navToggleInSmallScreen eui-hideFor--xl eui-hideFor--l',
className:
'navToggleInSmallScreen eui-hideFor--xl eui-hideFor--l eui-hideFor--xxl eui-hideFor--xxxl',
isSmallScreen: true,
})}
</>
Expand Down

0 comments on commit 6fd284f

Please sign in to comment.