Skip to content

Commit cd92419

Browse files
committed
fix(readme): add padding to the top of arrow scroll
1 parent 708f666 commit cd92419

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/pages/readme/readme.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ hgroup {
5858
max-width: 60rem;
5959

6060
& > section {
61+
padding-top: 10svh;
6162
margin-bottom: 5rem;
6263
width: 90%;
6364
}

src/app/pages/readme/readme.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ReadMeComponent {
2828
scrollTo(id: string): void {
2929
const target = document.getElementById(id);
3030
if (target) {
31-
target.scrollIntoView({ behavior: 'smooth' });
31+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)