feat: improve carousel scroll behavior to align fourth card with viewport edge

This commit is contained in:
2025-11-07 13:55:44 +01:00
parent 6779218da6
commit 46d02fca47

View File

@@ -60,7 +60,7 @@ export function ComputeCapabilitiesNew() {
{/* Horizontal Slider — shows part of next card */} {/* Horizontal Slider — shows part of next card */}
<ul <ul
ref={sliderRef} ref={sliderRef}
className="flex overflow-x-auto snap-x snap-mandatory scroll-smooth no-scrollbar pr-[10%]" className="flex overflow-x-auto snap-x snap-mandatory scroll-smooth no-scrollbar"
> >
{capabilities.map((item, idx) => ( {capabilities.map((item, idx) => (
<li <li