From bab927154ae61dafa05f6730623e17272292fc21 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Mon, 17 Aug 2026 13:22:11 +0330 Subject: [PATCH] fix --- src/app/candidate-contact/page.tsx | 4 +- src/app/finding-match/page.tsx | 2 +- src/app/globals.css | 35 +++++++++++++++--- src/app/intro/page.tsx | 2 +- .../[slug]/question-detail-client.test.tsx | 1 + src/app/questions-list/page.tsx | 8 +++- src/app/request-accepted/page.tsx | 2 +- src/app/request-sent/page.tsx | 2 +- .../Componentes/page-loading-skeleton.tsx | 4 +- .../Componentes/question-snap-list.tsx | 9 ++++- .../Componentes/required-steps-card.test.tsx | 8 ++-- src/components/Componentes/slider-page.tsx | 2 +- .../Componentes/use-sheet-scroll-lock.ts | 37 +++++++++++++++++-- 13 files changed, 91 insertions(+), 25 deletions(-) diff --git a/src/app/candidate-contact/page.tsx b/src/app/candidate-contact/page.tsx index 48ba63d..0621ea5 100644 --- a/src/app/candidate-contact/page.tsx +++ b/src/app/candidate-contact/page.tsx @@ -116,7 +116,7 @@ export default function CandidateContactPage() { /> ) : null} -
+
) : null} -
+
diff --git a/src/app/finding-match/page.tsx b/src/app/finding-match/page.tsx index 7e7b1f0..8e70cb1 100644 --- a/src/app/finding-match/page.tsx +++ b/src/app/finding-match/page.tsx @@ -78,7 +78,7 @@ export default function FindingMatchPage() {
+
{isReportSheetOpen && ( setIsReportSheetOpen(false)} /> )} diff --git a/src/app/questions-list/[slug]/question-detail-client.test.tsx b/src/app/questions-list/[slug]/question-detail-client.test.tsx index 49713c1..4b1bdbd 100644 --- a/src/app/questions-list/[slug]/question-detail-client.test.tsx +++ b/src/app/questions-list/[slug]/question-detail-client.test.tsx @@ -422,6 +422,7 @@ describe("QuestionDetailClient Validation", () => { ); expect(screen.getByRole("textbox")).toBeDefined(); + expect(screen.getByRole("textbox")).not.toHaveFocus(); expect(screen.queryByRole("status")).toBeNull(); }); diff --git a/src/app/questions-list/page.tsx b/src/app/questions-list/page.tsx index c780379..c714ede 100644 --- a/src/app/questions-list/page.tsx +++ b/src/app/questions-list/page.tsx @@ -473,7 +473,9 @@ export default function QuestionsListPage() {
) : null} -
+
diff --git a/src/app/request-sent/page.tsx b/src/app/request-sent/page.tsx index 4c6c934..ec8c208 100644 --- a/src/app/request-sent/page.tsx +++ b/src/app/request-sent/page.tsx @@ -69,7 +69,7 @@ export default function RequestSentPage() {
diff --git a/src/components/Componentes/page-loading-skeleton.tsx b/src/components/Componentes/page-loading-skeleton.tsx index 7293ec6..4a25412 100644 --- a/src/components/Componentes/page-loading-skeleton.tsx +++ b/src/components/Componentes/page-loading-skeleton.tsx @@ -17,7 +17,7 @@ export function PageLoadingSkeleton({
{/* Header */}
@@ -68,7 +68,7 @@ export function PageLoadingSkeleton({
diff --git a/src/components/Componentes/question-snap-list.tsx b/src/components/Componentes/question-snap-list.tsx index 6728f90..6d9a3b9 100644 --- a/src/components/Componentes/question-snap-list.tsx +++ b/src/components/Componentes/question-snap-list.tsx @@ -219,6 +219,10 @@ export function QuestionSnapList({ }, [activeIndex, onQuestionTransition]); useEffect(() => { + if (activeIndex === 0) { + return; + } + const activeQuestion = questionRefs.current[activeIndex]; if (!activeQuestion) { @@ -654,7 +658,10 @@ export function QuestionSnapList({ {question}
{isActive && ( -