Skip to content

Commit

Permalink
Merge pull request #4206 from signalco-io/fix/web/scroll-offset
Browse files Browse the repository at this point in the history
Fix/web/scroll offset
  • Loading branch information
AleksandarDev authored Dec 27, 2023
2 parents 05e6de1 + 9e248f0 commit 7ce6732
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions web/apps/blog/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ html, body, #__next {
height: 100%;
width: 100%;
}

:target {
scroll-margin-top: 80px;
}
5 changes: 3 additions & 2 deletions web/apps/web/app/(rest)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { PropsWithChildren } from 'react';
import { PageLayout } from '../../components/layouts/PageLayout';

export default function RestLayout() {
return <PageLayout />;
export default function RestLayout({ children }: PropsWithChildren) {
return <PageLayout>{children}</PageLayout>;
}
4 changes: 4 additions & 0 deletions web/apps/web/app/global.css
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import '@signalco/ui/index.css';

:target {
scroll-margin-top: 80px;
}

0 comments on commit 7ce6732

Please sign in to comment.