Skip to content

Commit 3284708

Browse files
committed
Enable true edge-to-edge tab scrolling
- Remove px-4 padding from scroll containers for true edge-to-edge scrolling - Add px-4 padding to tab containers for proper internal spacing - Tabs now appear/disappear from viewport edges without side margins - Maintains centered layout while enabling full-width scroll access
1 parent 00b03cf commit 3284708

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/PrinciplesValuesShowcase.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ const PrinciplesValuesShowcase = () => {
352352

353353
{/* Principle Navigation */}
354354
<div className="mb-12">
355-
<div className="overflow-x-auto scrollbar-hide px-4">
355+
<div className="overflow-x-auto scrollbar-hide">
356356
<div
357357
ref={principlesNavRef}
358-
className="flex gap-2 bg-muted/30 p-2 rounded-xl w-fit mx-auto"
358+
className="flex gap-2 bg-muted/30 p-2 rounded-xl w-fit mx-auto px-4"
359359
onMouseEnter={() => setIsHovered(true)}
360360
onMouseLeave={() => setIsHovered(false)}
361361
>
@@ -462,10 +462,10 @@ const PrinciplesValuesShowcase = () => {
462462

463463
{/* Value Navigation */}
464464
<div className="mb-12">
465-
<div className="overflow-x-auto scrollbar-hide px-4">
465+
<div className="overflow-x-auto scrollbar-hide">
466466
<div
467467
ref={valuesNavRef}
468-
className="flex gap-2 bg-muted/30 p-2 rounded-xl w-fit mx-auto"
468+
className="flex gap-2 bg-muted/30 p-2 rounded-xl w-fit mx-auto px-4"
469469
onMouseEnter={() => setIsHovered(true)}
470470
onMouseLeave={() => setIsHovered(false)}
471471
>

0 commit comments

Comments
 (0)