From 7f6e6369fff984f43d633655042c965b53bcd12a Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Tue, 19 May 2026 18:06:51 +0300 Subject: [PATCH] fix: reduce padding and spacing for mobile Main: px-4 py-6 on mobile (was px-8 py-12). Section accordion: mb/py on inactive links tightened to 1/1 on mobile, space-y-0 between sections. Active title text-xl on mobile to prevent wrapping at ~400px, matches inactive title size. --- app/[[...slug]]/page.tsx | 2 +- .../Section/ui/SectionAccordion/SectionAccordion.tsx | 10 +++++----- .../ui/SectionsAccordion/SectionsAccordion.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/[[...slug]]/page.tsx b/app/[[...slug]]/page.tsx index 00450ec..6cc7a73 100644 --- a/app/[[...slug]]/page.tsx +++ b/app/[[...slug]]/page.tsx @@ -41,7 +41,7 @@ export default async function SectionPage({ params }: Props) { } return ( -
+
{sections.map((s) => ( diff --git a/src/entities/Section/ui/SectionAccordion/SectionAccordion.tsx b/src/entities/Section/ui/SectionAccordion/SectionAccordion.tsx index 12eee10..8acdfd3 100644 --- a/src/entities/Section/ui/SectionAccordion/SectionAccordion.tsx +++ b/src/entities/Section/ui/SectionAccordion/SectionAccordion.tsx @@ -38,10 +38,10 @@ export function SectionAccordion({ number, title, id, isActive, href, children } return (
{isActive ? ( -
+
-
-

{heading}

+
+

{heading}

@@ -52,9 +52,9 @@ export function SectionAccordion({ number, title, id, isActive, href, children } - + {heading} diff --git a/src/widgets/SectionsAccordion/ui/SectionsAccordion/SectionsAccordion.tsx b/src/widgets/SectionsAccordion/ui/SectionsAccordion/SectionsAccordion.tsx index c195e02..6e8f74b 100644 --- a/src/widgets/SectionsAccordion/ui/SectionsAccordion/SectionsAccordion.tsx +++ b/src/widgets/SectionsAccordion/ui/SectionsAccordion/SectionsAccordion.tsx @@ -28,7 +28,7 @@ export function SectionsAccordion({ sections, activeSlug, children }: Props) { const slots = Children.toArray(children); return ( -
+
{sections.map((section, i) => (