mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
enhancement(web): pending component placement (#1402)
This commit is contained in:
parent
0174d743b1
commit
6e62c30d68
2 changed files with 8 additions and 6 deletions
|
@ -316,7 +316,7 @@ export const AuthRoute = createRoute({
|
|||
|
||||
function AuthenticatedLayout() {
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
<div className="flex flex-col min-h-screen">
|
||||
<Header/>
|
||||
<Outlet/>
|
||||
</div>
|
||||
|
@ -364,7 +364,7 @@ const routeTree = RootRoute.addChildren([
|
|||
export const Router = createRouter({
|
||||
routeTree,
|
||||
defaultPendingComponent: () => (
|
||||
<div className="absolute top-1/4 left-1/2 !border-0">
|
||||
<div className="flex flex-grow items-center justify-center col-span-9">
|
||||
<RingResizeSpinner className="text-blue-500 size-24"/>
|
||||
</div>
|
||||
),
|
||||
|
|
|
@ -7,8 +7,10 @@ import { Stats } from "./dashboard/Stats";
|
|||
import { ActivityTable } from "./dashboard/ActivityTable";
|
||||
|
||||
export const Dashboard = () => (
|
||||
<div className="my-6 max-w-screen-xl mx-auto pb-6 px-2 sm:px-6 lg:pb-16 lg:px-8">
|
||||
<Stats />
|
||||
<ActivityTable />
|
||||
</div>
|
||||
<main>
|
||||
<div className="my-6 max-w-screen-xl mx-auto pb-6 px-2 sm:px-6 lg:pb-16 lg:px-8">
|
||||
<Stats />
|
||||
<ActivityTable />
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue