Skip to content

Commit f3e7d08

Browse files
authored
Fix Horizontal Overflow on mobile (#25)
1 parent b5e76ca commit f3e7d08

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/pages/components/HeroSection/HeroSection.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@
443443
}
444444

445445
@media (max-width: 768px) {
446+
.heroContainer {
447+
padding-top: 2rem;
448+
overflow: hidden;
449+
}
450+
446451
.screenshotContainer {
447452
width: 90%;
448453
position: relative;

src/pages/index.module.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,17 +547,22 @@ html[data-theme="dark"] .repoLink:hover {
547547
}
548548

549549
/* Adjust decoration for mobile */
550+
.geometricDecoration {
551+
overflow: hidden;
552+
inset: -4rem -1rem;
553+
}
554+
550555
.decorShape1 {
551556
width: 100px;
552557
height: 100px;
553-
top: -5px;
558+
top: 50px;
554559
right: -10px;
555560
}
556561

557562
.decorShape2 {
558563
width: 80px;
559564
height: 80px;
560-
bottom: -10px;
565+
bottom: 40px;
561566
left: -15px;
562567
}
563568

0 commit comments

Comments
 (0)