Skip to content

Commit 4804bdf

Browse files
p4gsclaudehappy-otter
committed
Fix table overscroll with outer wrapper clipping
Separate border/radius/shadow into .table-outer with overflow:hidden, so elastic bounce on the inner scroll container has nothing to reveal. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 6b9e325 commit 4804bdf

File tree

1 file changed

+10
-11
lines changed
  • docs/projects/grcengineering-cheat-sheet

1 file changed

+10
-11
lines changed

docs/projects/grcengineering-cheat-sheet/index.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,18 @@
159159
margin: 0 auto 80px;
160160
padding: 0 24px;
161161
}
162-
.table-container {
163-
position: relative;
164-
overflow: auto;
165-
-webkit-overflow-scrolling: touch;
166-
overscroll-behavior: contain;
162+
.table-outer {
167163
border-radius: 16px;
168164
box-shadow:
169165
0 4px 24px var(--shadow),
170166
0 1px 4px var(--shadow);
171167
border: 1px solid var(--border);
168+
overflow: hidden;
169+
}
170+
.table-container {
171+
overflow: auto;
172+
-webkit-overflow-scrolling: touch;
173+
overscroll-behavior: contain;
172174
background: var(--bg-card);
173175
max-height: calc(100vh - 100px);
174176
}
@@ -208,9 +210,7 @@
208210
border-right: 2px solid var(--border-header);
209211
}
210212

211-
/* Rounded corners on table via header cells */
212-
thead th:first-child { border-top-left-radius: 15px; }
213-
thead th:last-child { border-top-right-radius: 15px; }
213+
/* Rounded corners handled by .table-outer overflow: hidden */
214214

215215
/* Sticky first column */
216216
tbody td:first-child {
@@ -254,9 +254,6 @@
254254
background: var(--bg-row-hover);
255255
}
256256

257-
/* Last row rounded corners */
258-
tbody tr:last-child td:first-child { border-bottom-left-radius: 15px; }
259-
tbody tr:last-child td:last-child { border-bottom-right-radius: 15px; }
260257
tbody tr:last-child td { border-bottom: none; }
261258

262259
/* Column header label styling */
@@ -378,6 +375,7 @@ <h1 class="page-title">The <span class="highlight">GRC Engineering</span> Cheat
378375
</header>
379376

380377
<main class="table-wrapper">
378+
<div class="table-outer">
381379
<div class="table-container">
382380
<table>
383381
<thead>
@@ -483,6 +481,7 @@ <h1 class="page-title">The <span class="highlight">GRC Engineering</span> Cheat
483481
</tbody>
484482
</table>
485483
</div>
484+
</div>
486485
</main>
487486

488487
<footer class="page-footer">

0 commit comments

Comments
 (0)