Skip to content

Commit 0ae3693

Browse files
committed
Used better space management
1 parent 63b9945 commit 0ae3693

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

styles.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ h1 {
368368
.content-wrapper {
369369
max-width: 1600px;
370370
margin: 0 auto;
371+
width: 100%;
372+
padding: 0 2rem;
371373
}
372374

373375
.images-grid {
@@ -429,9 +431,6 @@ h1 {
429431
gap: 2rem;
430432
margin: 2rem 0;
431433
align-items: start;
432-
max-width: 1600px;
433-
margin-left: auto;
434-
margin-right: auto;
435434
width: 100%;
436435
}
437436

@@ -444,6 +443,7 @@ h1 {
444443

445444
.side-by-side-layout .image-container img {
446445
max-height: none;
446+
width: 100%;
447447
}
448448

449449
.side-by-side-layout .code-section {
@@ -477,14 +477,16 @@ h1 {
477477
font-weight: normal;
478478
scrollbar-width: thin;
479479
scrollbar-color: #475569 #1e293b;
480-
}
481-
482-
/* Only add max-height when NOT in side-by-side layout */
483-
.code-section:not(.side-by-side-layout .code-section) .code-content {
484480
max-height: 700px;
485481
overflow-y: auto;
486482
}
487483

484+
/* Remove max-height when IN side-by-side layout */
485+
.side-by-side-layout .code-content {
486+
max-height: none;
487+
overflow-y: visible;
488+
}
489+
488490
.code-content::-webkit-scrollbar {
489491
width: 8px;
490492
height: 8px;

0 commit comments

Comments
 (0)