diff --git a/frontend/src/pages/Home/sections/TechnogenSection.tsx b/frontend/src/pages/Home/sections/TechnogenSection.tsx index 6f8fd3f..dd4949b 100644 --- a/frontend/src/pages/Home/sections/TechnogenSection.tsx +++ b/frontend/src/pages/Home/sections/TechnogenSection.tsx @@ -89,13 +89,13 @@ export default function TechnogenSection() { setIsPaused(false) if (touchStartX.current === null) return const diff = touchStartX.current - e.changedTouches[0].clientX - if (Math.abs(diff) > 40) { - if (isFa) { - if (diff > 0) goNext() - else goPrev() + if (Math.abs(diff) > 30) { + if (diff > 0) { + // Dragging finger left moves to next report + goNext() } else { - if (diff > 0) goPrev() - else goNext() + // Dragging finger right moves to previous report + goPrev() } } touchStartX.current = null @@ -175,50 +175,35 @@ export default function TechnogenSection() { />
- {/* ── Section Header with Gold Accent Line & Slider Controls ── */} + {/* ── Section Header with Gold Accent Line ── */}
-
-
-
-

- {isFa ? 'تکنوژن؛ برنامه توسعه‌گر ملی فناوری' : 'Technogen: National Technology Developer Program'} -

-
-

+

+

- {isFa - ? 'گزارش‌های تحلیلی و مطالعات تطبیقی یادگیری صنعتی، انتقال دانش و ساخت قابلیت فناورانه در زنجیره فولاد' - : 'Analytical notes and comparative studies on industrial learning, knowledge absorption, and technological capability building in steel.'} -

+ {isFa ? 'تکنوژن؛ برنامه توسعه‌گر ملی فناوری' : 'Technogen: National Technology Developer Program'} +

- {/* Slider controls (visible on desktop if >5 or always on mobile if >1) */} - {totalPages > 1 && ( + {/* Slider controls (visible on desktop only if > 5 reports) */} + {!isMobile && totalPages > 1 && (
{isFa ? `${faNum(page + 1)} از ${faNum(totalPages)}` : `${page + 1} of ${totalPages}`} @@ -277,9 +262,9 @@ export default function TechnogenSection() { 1 && (