Skip to content

Commit 3f969a6

Browse files
author
TechStack Global
committed
fix(mobile): eliminate all horizontal overflow - global img/table safeguards, minmax(min(320px,100%)), fix table wrapper bleed
1 parent bdebdd6 commit 3f969a6

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

amazon-stack.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
content="The definitive guide to Amazon-sourced hardware for students, freelancers, and remote workers. Vetted benchmarks for modern productivity.">
1010
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
1111
rel="stylesheet">
12-
<link rel="stylesheet" href="style.css?v=2">
12+
<link rel="stylesheet" href="style.css?v=3">
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
1414
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32.png">
1515

@@ -75,7 +75,8 @@ <h1>The Amazon Stack</h1>
7575
<p style="color: var(--text-muted); margin-bottom: 2rem; max-width: 800px;">
7676
Hardware chosen for performance, reliability, and practical daily use.
7777
</p>
78-
<div class="blog-grid" style="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));">
78+
<div class="blog-grid" style="grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));">
79+
7980
<!-- MacBook Pro -->
8081
<div class="product-item glass-card">
8182
<div class="product-thumbnail-wrapper">

style.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,19 @@ body {
6161
line-height: 1.6;
6262
overflow-x: hidden;
6363
position: relative;
64-
max-width: 100vw;
64+
max-width: 100%;
65+
}
66+
67+
/* Global safeguards against horizontal overflow */
68+
img,
69+
video,
70+
iframe {
71+
max-width: 100%;
72+
height: auto;
73+
}
74+
75+
table {
76+
max-width: 100%;
6577
}
6678

6779
/* Typography */
@@ -603,7 +615,7 @@ img {
603615
/* Affiliate/Recommended Tools Grid */
604616
.affiliate-grid {
605617
display: grid;
606-
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
618+
grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
607619
gap: 2rem;
608620
}
609621

@@ -873,10 +885,8 @@ img {
873885
.comparison-table-wrapper {
874886
overflow-x: auto;
875887
-webkit-overflow-scrolling: touch;
876-
margin-left: -1.25rem;
877-
margin-right: -1.25rem;
878-
padding-left: 1.25rem;
879-
padding-right: 1.25rem;
888+
width: 100%;
889+
max-width: 100%;
880890
}
881891

882892
.footer-content {

0 commit comments

Comments
 (0)