Skip to content

Commit a0b656a

Browse files
authored
fix(sponsors): Solve horizontal scroll issue on mobile (#50)
# Summary - Fix horizontal page scroll on mobile for the sponsors page by adding overflow-x-hidden to the page wrapper - Make the pricing table's first column (Beneficios, category headers, row labels) sticky so they remain visible while scrolling horizontally - Change table from border-collapse to border-separate to ensure borders render correctly with sticky positioning https://github.com/user-attachments/assets/fe9a5a9d-7359-4813-9acd-7191e640454e
1 parent 9100235 commit a0b656a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/pages/sponsors.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const socialLinks = [
277277
---
278278

279279
<Layout title="Oportunidades de Patrocinio - PyConES 2026">
280-
<div class="page-wrapper text-[#e5e5e5] font-sans min-h-screen w-full absolute top-0 left-0 z-10">
280+
<div class="page-wrapper text-[#e5e5e5] font-sans min-h-screen w-full absolute top-0 left-0 z-10 overflow-x-hidden">
281281
<div class="container-custom max-w-[1200px] mx-auto px-4 py-8">
282282
<!-- Header -->
283283
<div class="text-center mb-16 pt-16">
@@ -519,10 +519,10 @@ const socialLinks = [
519519
<h2 class="text-center text-3xl font-bold mb-8">Paquetes de patrocinio</h2>
520520

521521
<div class="table-scroll overflow-x-auto pb-4 mb-8 border border-[#333] rounded-lg bg-[#0a0a0a]">
522-
<table class="pricing-table w-full border-collapse min-w-[900px]">
522+
<table class="pricing-table w-full border-separate border-spacing-0 min-w-[900px]">
523523
<thead>
524524
<tr>
525-
<th scope="col" class="w-[200px] p-4 text-center border-b border-white/10 align-bottom pb-6">Beneficios</th>
525+
<th scope="col" class="w-[200px] p-4 text-center border-b border-white/10 align-bottom pb-6 sticky left-0 bg-[#0a0a0a] border-r border-[#333] z-10">Beneficios</th>
526526
{
527527
tiers.map((t) => (
528528
<th
@@ -549,12 +549,12 @@ const socialLinks = [
549549
<tr>
550550
<th
551551
scope="row"
552-
colspan="6"
553-
class="p-4 text-left font-bold text-green-400 bg-[#0f0f0f] border-b border-white/10"
552+
class="p-4 text-left font-bold text-green-400 bg-[#0f0f0f] border-b border-white/10 sticky left-0 z-10"
554553
aria-label={category.category}
555554
>
556555
<span aria-hidden="true">{category.category}</span>
557556
</th>
557+
<td colspan="5" class="bg-[#0f0f0f] border-b border-white/10"></td>
558558
</tr>
559559
{category.rows.map((row) => (
560560
<tr>

0 commit comments

Comments
 (0)