Skip to content

Commit 4421ff2

Browse files
Fix screenshots
1 parent 524c34a commit 4421ff2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,16 @@
168168
/* Screenshots */
169169
.screenshots {
170170
display: grid;
171-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
171+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
172172
gap: 20px;
173173
justify-content: center;
174174
}
175175

176176
.screenshots img {
177177
width: 100%;
178-
height: 200px;
179-
object-fit: cover;
178+
height: auto;
179+
aspect-ratio: 4 / 3; /* Maintains 320x240 aspect ratio */
180+
object-fit: contain; /* Ensures no cropping of borders */
180181
border-radius: 10px;
181182
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
182183
transition: transform 0.3s ease, box-shadow 0.3s ease;
@@ -308,8 +309,8 @@
308309
font-size: 1.8rem;
309310
}
310311

311-
.screenshots img {
312-
height: 150px;
312+
.screenshots {
313+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
313314
}
314315
}
315316

@@ -322,8 +323,8 @@
322323
padding: 20px;
323324
}
324325

325-
.screenshots img {
326-
height: 120px;
326+
.screenshots {
327+
grid-template-columns: 1fr;
327328
}
328329
}
329330
</style>
@@ -339,7 +340,7 @@
339340
<li><a href="https://t.me/MicroPythonOS" target="_blank" aria-label="Join MicroPythonOS Community">Community</a></li>
340341
<li><a href="mailto:info@MicroPythonOS.com" target="_blank" aria-label="Contact MicroPythonOS">Contact</a></li>
341342
</ul>
342-
<div class="hamburger" onclick="toggleMenu()">&#9776;</div>
343+
<div class="hamburger" onclick="toggleMenu()"></div>
343344
</div>
344345
</nav>
345346

0 commit comments

Comments
 (0)