From 8958d89d12c7e39056cfa5152f9eb71a8dcd02a9 Mon Sep 17 00:00:00 2001 From: ivannoskov Date: Wed, 21 Jan 2026 10:42:47 +0300 Subject: [PATCH] fix: training scroll fix --- components/layout/app-sidebar.tsx | 122 +++++++++++++++--------------- 1 file changed, 62 insertions(+), 60 deletions(-) diff --git a/components/layout/app-sidebar.tsx b/components/layout/app-sidebar.tsx index 233c5cf..da418ef 100644 --- a/components/layout/app-sidebar.tsx +++ b/components/layout/app-sidebar.tsx @@ -891,8 +891,8 @@ function TrainingGuidePanel({ aria-modal="true" aria-label="Обучение платформе" > -
-
+
+
@@ -911,66 +911,68 @@ function TrainingGuidePanel({
-
-
- {step.icon ? ( -
- -
- ) : null} -

{step.title}

-
-

{step.description}

-
- {step.sections?.length ? ( -
- {step.sections.map((section) => ( -
-
- {section.icon ? ( -
- -
- ) : null} -
-

{section.title}

-

- {section.description} -

-
+
+
+
+ {step.icon ? ( +
+
- {section.points?.length ? ( -
    - {section.points.map((point) => ( -
  • - - {point} -
  • - ))} -
- ) : null} -
- ))} + ) : null} +

{step.title}

+
+

{step.description}

- ) : step.points?.length ? ( -
    - {step.points.map((point) => ( -
  • - {point} -
  • - ))} -
- ) : null} -
+ {step.sections?.length ? ( +
+ {step.sections.map((section) => ( +
+
+ {section.icon ? ( +
+ +
+ ) : null} +
+

{section.title}

+

+ {section.description} +

+
+
+ {section.points?.length ? ( +
    + {section.points.map((point) => ( +
  • + + {point} +
  • + ))} +
+ ) : null} +
+ ))} +
+ ) : step.points?.length ? ( +
    + {step.points.map((point) => ( +
  • + {point} +
  • + ))} +
+ ) : null} +
+