docs(nx-dev): adjust Popover.Panel max-width in small screens (#31331)
Updated the `max-w` property to use `max-w-xl` by default and `xl:max-w-2xl` for larger screens.
This commit is contained in:
parent
e2b3acaa37
commit
3ea50eb0e7
@ -157,7 +157,7 @@ export function Header({ ctaButtons }: HeaderProps): ReactElement {
|
|||||||
leaveFrom="opacity-100 translate-y-0"
|
leaveFrom="opacity-100 translate-y-0"
|
||||||
leaveTo="opacity-0 translate-y-1"
|
leaveTo="opacity-0 translate-y-1"
|
||||||
>
|
>
|
||||||
<Popover.Panel className="absolute left-60 z-30 mt-3 w-max max-w-2xl -translate-x-1/2 transform lg:left-20">
|
<Popover.Panel className="absolute left-60 z-30 mt-3 w-max max-w-xl -translate-x-1/2 transform lg:left-20 xl:max-w-2xl">
|
||||||
<SectionsMenu
|
<SectionsMenu
|
||||||
sections={{
|
sections={{
|
||||||
'Speed, Reliability and AI': solutionsItems,
|
'Speed, Reliability and AI': solutionsItems,
|
||||||
@ -267,7 +267,7 @@ export function Header({ ctaButtons }: HeaderProps): ReactElement {
|
|||||||
leaveFrom="opacity-100 translate-y-0"
|
leaveFrom="opacity-100 translate-y-0"
|
||||||
leaveTo="opacity-0 translate-y-1"
|
leaveTo="opacity-0 translate-y-1"
|
||||||
>
|
>
|
||||||
<Popover.Panel className="absolute left-60 z-30 mt-3 w-max max-w-2xl -translate-x-1/2 transform lg:left-20">
|
<Popover.Panel className="absolute left-60 z-30 mt-3 w-max max-w-xl -translate-x-1/2 transform lg:left-20 xl:max-w-2xl">
|
||||||
<SectionsMenu
|
<SectionsMenu
|
||||||
sections={{
|
sections={{
|
||||||
'Nx for Enterprises': enterpriseItems,
|
'Nx for Enterprises': enterpriseItems,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user