From bfc91e3a222745fcf0cbd5d4ebad47ca187bb6bd Mon Sep 17 00:00:00 2001 From: Mahen Date: Mon, 23 Feb 2026 19:43:53 +0700 Subject: [PATCH] style: add auto scroll result analysis section --- src/components/dashboards/AnalysisClient.tsx | 53 ++------------------ src/components/dashboards/ResultSection.tsx | 11 ++-- src/hooks/useAnalyzeText.ts | 18 ++++++- src/utils/datas.ts | 6 +++ 4 files changed, 29 insertions(+), 59 deletions(-) diff --git a/src/components/dashboards/AnalysisClient.tsx b/src/components/dashboards/AnalysisClient.tsx index 23484ad..664e576 100644 --- a/src/components/dashboards/AnalysisClient.tsx +++ b/src/components/dashboards/AnalysisClient.tsx @@ -26,6 +26,7 @@ export default function AnalysisClient() { loading, result, showField, + resultRef, setShowField, } = useAnalyseText(); @@ -151,50 +152,6 @@ export default function AnalysisClient() { )} - {/* {showField ? ( -
- -
-
- - {errors.url3 && ( -

- {errors.url3.message} -

- )} -
- -
-
- ) : ( -
- -
- )} */} - {showField ? (
)} - - {/*
- -
*/}