From c7a81c5874596ff105776af268602ab2c59b7cbf Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Wed, 27 Dec 2023 22:22:53 +0100 Subject: [PATCH 1/2] fix(web): Added scroll offset Closes #820 --- web/apps/blog/app/global.css | 4 ++++ web/apps/web/app/global.css | 4 ++++ 2 files changed, 8 insertions(+) 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/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; +} From 9e248f067aac784c4df4a2067e817dbb99d6533c Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Wed, 27 Dec 2023 22:24:26 +0100 Subject: [PATCH 2/2] fix(web): Page content not displaying --- web/apps/web/app/(rest)/layout.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}; }