Skip to content

Commit af2ae61

Browse files
committed
Fikser riktig scroll-posisjon til flexcols
1 parent 4058c6f commit af2ae61

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/components/layouts/flex-cols/FlexColsLayout.module.scss

+5
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@
135135
}
136136
}
137137

138+
.anchorOffset {
139+
position: relative;
140+
transform: translateY(calc(var(--a-spacing-20) * -1));
141+
}
142+
138143
.shelfHeader:before {
139144
@include common.header-before-rectangle();
140145
}

src/components/layouts/flex-cols/SituationPageFlexColsLayout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const SituationPageFlexColsLayout = ({ pageProps, layoutProps }: Props) =
5050
layoutProps={layoutProps}
5151
>
5252
<div className={style.contentWrapper}>
53+
<div className={style.anchorOffset} id={anchorId} />
5354
{title && (
5455
<Header
5556
level="2"

0 commit comments

Comments
 (0)