Skip to content

Commit

Permalink
[navigation]fix: add xxl and xxxl for left nav responsiveness (opense…
Browse files Browse the repository at this point in the history
…arch-project#8289) (opensearch-project#8319)

* fix: add xxl and xxxl



* feat: update



* feat: update snapshot



---------


(cherry picked from commit 6fd284f)

Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and yubonluo committed Sep 25, 2024
1 parent 4d2eb7c commit 4cae56a
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 @@ -272,7 +272,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 4cae56a

Please sign in to comment.