change basic layout about overflow scrollbar position

This commit is contained in:
moonrailgun 2023-10-29 01:25:29 +08:00
parent 64f33dd802
commit b9d9391342

View File

@ -71,12 +71,14 @@ export const Layout: React.FC = React.memo(() => {
</div>
</div>
)}
<div className="flex-1 w-full px-4 overflow-hidden">
<div className="max-w-7xl m-auto h-full overflow-auto">
<div className="flex-1 w-full overflow-hidden">
<div className="h-full px-4 overflow-auto">
<div className="max-w-7xl m-auto">
<Outlet />
</div>
</div>
</div>
</div>
);
});
Layout.displayName = 'Layout';