diff --git a/web/apps/blog/app/global.css b/web/apps/blog/app/global.css index 3fb2bb7d8f..837f30d629 100644 --- a/web/apps/blog/app/global.css +++ b/web/apps/blog/app/global.css @@ -4,3 +4,7 @@ html, body, #__next { height: 100%; width: 100%; } + +:target { + scroll-margin-top: 80px; +} diff --git a/web/apps/web/app/(rest)/layout.tsx b/web/apps/web/app/(rest)/layout.tsx index 5b94d42635..1881813ac8 100644 --- a/web/apps/web/app/(rest)/layout.tsx +++ b/web/apps/web/app/(rest)/layout.tsx @@ -1,5 +1,6 @@ +import { PropsWithChildren } from 'react'; import { PageLayout } from '../../components/layouts/PageLayout'; -export default function RestLayout() { - return ; +export default function RestLayout({ children }: PropsWithChildren) { + return {children}; } diff --git a/web/apps/web/app/global.css b/web/apps/web/app/global.css index 1fe6561470..4812ad2f3d 100644 --- a/web/apps/web/app/global.css +++ b/web/apps/web/app/global.css @@ -1 +1,5 @@ @import '@signalco/ui/index.css'; + +:target { + scroll-margin-top: 80px; +}