fix: profile sidebar layout (#3792)

This commit is contained in:
Anmol Singh Bhatia 2024-02-26 13:22:59 +05:30 committed by GitHub
parent b4fb9f1aa2
commit a8c5b558b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,8 +28,9 @@ export const ProfileAuthWrapper: React.FC<Props> = observer((props) => {
const isAuthorizedPath = router.pathname.includes("assigned" || "created" || "subscribed");
return (
<div className="h-full w-full realtive flex flex-row">
<div className="w-full realtive flex flex-col">
<div className="h-full w-full md:flex md:flex-row-reverse md:overflow-hidden">
<ProfileSidebar />
<div className="flex w-full flex-col md:h-full md:overflow-hidden">
<ProfileNavbar isAuthorized={isAuthorized} showProfileIssuesFilter={showProfileIssuesFilter} />
{isAuthorized || !isAuthorizedPath ? (
<div className={`w-full overflow-hidden md:h-full ${className}`}>{children}</div>
@ -39,8 +40,6 @@ export const ProfileAuthWrapper: React.FC<Props> = observer((props) => {
</div>
)}
</div>
<ProfileSidebar />
</div>
);
});