parent
1929d5c7d4
commit
212f7a374f
|
@ -336,11 +336,10 @@ function UserDropdown({ small }: UserDropdownProps) {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Dropdown open={menuOpen}>
|
<Dropdown open={menuOpen}>
|
||||||
<div className="ltr:md:-ml-5 rtl:md:-mr-5">
|
|
||||||
<DropdownMenuTrigger asChild onClick={() => setMenuOpen((menuOpen) => !menuOpen)}>
|
<DropdownMenuTrigger asChild onClick={() => setMenuOpen((menuOpen) => !menuOpen)}>
|
||||||
<button
|
<button
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"hover:bg-emphasis group mx-0 ml-0.5 flex cursor-pointer appearance-none items-center rounded-full text-left outline-none focus:outline-none focus:ring-0 md:rounded-none lg:rounded",
|
"hover:bg-emphasis group mx-0 flex cursor-pointer appearance-none items-center rounded-full text-left outline-none focus:outline-none focus:ring-0 md:rounded-none lg:rounded",
|
||||||
small ? "p-2" : "px-2 py-1"
|
small ? "p-2" : "px-2 py-1"
|
||||||
)}>
|
)}>
|
||||||
<span
|
<span
|
||||||
|
@ -375,7 +374,6 @@ function UserDropdown({ small }: UserDropdownProps) {
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
</div>
|
|
||||||
|
|
||||||
<DropdownMenuPortal>
|
<DropdownMenuPortal>
|
||||||
<FreshChatProvider>
|
<FreshChatProvider>
|
||||||
|
@ -1030,7 +1028,7 @@ function MainContainer({
|
||||||
<main className="bg-default relative z-0 flex-1 focus:outline-none">
|
<main className="bg-default relative z-0 flex-1 focus:outline-none">
|
||||||
{/* show top navigation for md and smaller (tablet and phones) */}
|
{/* show top navigation for md and smaller (tablet and phones) */}
|
||||||
{TopNavContainerProp}
|
{TopNavContainerProp}
|
||||||
<div className="max-w-full py-4 px-4 md:py-8 lg:px-12">
|
<div className="max-w-full px-4 py-4 md:py-8 lg:px-12">
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
{!props.withoutMain ? <ShellMain {...props}>{props.children}</ShellMain> : props.children}
|
{!props.withoutMain ? <ShellMain {...props}>{props.children}</ShellMain> : props.children}
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
|
Loading…
Reference in New Issue