From f4ecc293f9bf242a7da97e80148b04c626b9b4af Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Tue, 9 Sep 2025 22:53:13 +0800 Subject: [PATCH 1/3] fix(dataset-sidebar): eliminate icon flickering during expand/collapse - Unified layout structure for both expand/collapse states - Single AppIcon component with dynamic size props instead of conditional rendering - Fixed container structure prevents DOM rebuilding and flickering - Adjusted spacing for collapsed state more button positioning --- .../app-sidebar/dataset-info/index.tsx | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/web/app/components/app-sidebar/dataset-info/index.tsx b/web/app/components/app-sidebar/dataset-info/index.tsx index f85e3880b2..44b0baa72b 100644 --- a/web/app/components/app-sidebar/dataset-info/index.tsx +++ b/web/app/components/app-sidebar/dataset-info/index.tsx @@ -35,35 +35,47 @@ const DatasetInfo: FC = ({ return (
{expand && ( - <> - -
-
- + + )} + +
+
+
+ +
+ {expand && ( +
-
-
- {dataset.name} -
-
- {isExternalProvider && t('dataset.externalTag')} - {!isExternalProvider && isPipelinePublished && dataset.doc_form && dataset.indexing_technique && ( -
- {t(`dataset.chunkingMode.${DOC_FORM_TEXT[dataset.doc_form]}`)} - {formatIndexingTechniqueAndMethod(dataset.indexing_technique, dataset.retrieval_model_dict?.search_method)} -
- )} -
+ )} +
+ {!expand && ( +
+ +
+ )} + {expand && ( +
+
+ {dataset.name} +
+
+ {isExternalProvider && t('dataset.externalTag')} + {!isExternalProvider && isPipelinePublished && dataset.doc_form && dataset.indexing_technique && ( +
+ {t(`dataset.chunkingMode.${DOC_FORM_TEXT[dataset.doc_form]}`)} + {formatIndexingTechniqueAndMethod(dataset.indexing_technique, dataset.retrieval_model_dict?.search_method)} +
+ )}
{!!dataset.description && (

@@ -71,20 +83,8 @@ const DatasetInfo: FC = ({

)}
- - )} - {!expand && ( -
- - -
- )} + )} +
) } From 4eca134a2a1b834ff05f1b8e71aebf7ee1821659 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Tue, 9 Sep 2025 22:54:10 +0800 Subject: [PATCH 2/3] chore: add .serena/ to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index bc354e639e..1a808feb91 100644 --- a/.gitignore +++ b/.gitignore @@ -227,3 +227,4 @@ web/public/fallback-*.js .roo/ api/.env.backup /clickzetta +.serena/ From 5e1e387c5c4c71bf0ebe3dfe30e4301197945bed Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Tue, 9 Sep 2025 22:55:19 +0800 Subject: [PATCH 3/3] Revert "chore: add .serena/ to gitignore" This reverts commit 4eca134a2a1b834ff05f1b8e71aebf7ee1821659. --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1a808feb91..bc354e639e 100644 --- a/.gitignore +++ b/.gitignore @@ -227,4 +227,3 @@ web/public/fallback-*.js .roo/ api/.env.backup /clickzetta -.serena/