diff --git a/web/src/layouts/SimpleCenterPage.tsx b/web/src/layouts/SimpleCenterPage.tsx index 166572c..f57a75e 100644 --- a/web/src/layouts/SimpleCenterPage.tsx +++ b/web/src/layouts/SimpleCenterPage.tsx @@ -6,6 +6,7 @@ import { getTitle } from '@/util/title'; export type SCPageProperties = PropsWithChildren<{ title: string; + subtext?: string; width?: 'xl' | '2xl' | '3xl' | '4xl' | '5xl'; suffix?: ReactNode; className?: ClassValue; @@ -14,6 +15,7 @@ export type SCPageProperties = PropsWithChildren<{ export const SCPage: FC = ({ children, title, + subtext, width = '4xl', suffix, className, @@ -35,7 +37,10 @@ export const SCPage: FC = ({ )} >
-

{title}

+
+

{title}

+ {subtext &&
{subtext}
} +
{suffix}
{children} diff --git a/web/src/routes/item/$itemId/index.tsx b/web/src/routes/item/$itemId/index.tsx index 17a8c3a..94e6bd0 100644 --- a/web/src/routes/item/$itemId/index.tsx +++ b/web/src/routes/item/$itemId/index.tsx @@ -29,7 +29,7 @@ export const Route = createFileRoute('/item/$itemId/')({ console.log('params', params); if (params.itemId == '') { - return redirect({ to: '/items' }); + return redirect({ to: '/items', search: { view: 'full' } }); } // Ensure instance settings are loaded @@ -71,6 +71,7 @@ export const Route = createFileRoute('/item/$itemId/')({ return ( } > -
+