Skip to content

Commit 2ee5cef

Browse files
committed
Fix layout overflow: prevent animated terminal from causing horizontal page scroll on narrow screens
1 parent da8f178 commit 2ee5cef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

site/src/layouts/BaseLayout.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
825825
font-size: 0.85rem;
826826
line-height: 1.5;
827827
backdrop-filter: blur(8px);
828+
max-width: 100%;
829+
box-sizing: border-box;
828830
}
829831

830832
.terminal-header {
@@ -857,6 +859,7 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
857859
.terminal-body {
858860
padding: 16px;
859861
color: #d7f7ff;
862+
overflow-x: auto;
860863
}
861864

862865
.terminal-line {
@@ -865,7 +868,7 @@ const repoUrl = "https://github.com/ALEVOLDON/Modular-Genesis";
865868
margin-bottom: 6px;
866869
opacity: 0;
867870
animation: fadeUpLine 0.4s ease forwards;
868-
white-space: pre;
871+
white-space: nowrap;
869872
}
870873

871874
.terminal-line:nth-child(1) { animation-delay: 0.2s; }

0 commit comments

Comments
 (0)