From f207e91286b7de6eff491d2adcd6da44acdd1bbd Mon Sep 17 00:00:00 2001 From: shreeyash07 Date: Wed, 7 Aug 2024 10:41:06 +0545 Subject: [PATCH] Fix evidences title and add header in label --- .../StoryAnalysisModal/index.tsx | 190 +++++++++--------- .../StoryAnalysisModal/styles.css | 20 +- 2 files changed, 101 insertions(+), 109 deletions(-) diff --git a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx index acef08e948..9f307a8931 100644 --- a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx +++ b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx @@ -13,6 +13,7 @@ import { Button, CollapsibleContainer, Container, + Header, ListView, Modal, QuickActionButton, @@ -397,7 +398,7 @@ function StoryAnalysisModal(props: Props) { ? `**Analytical Statement** \n \n ${analyticalStatement} \n \n` : ''; const entriesText = generatedReportText - ? `**Evidences** \n \n ${generatedReportText} \n \n` + ? `**Evidence** \n \n ${generatedReportText} \n \n` : ''; const myAnalysis = myAnalysisHeading @@ -592,38 +593,39 @@ function StoryAnalysisModal(props: Props) {
-
- Information Gaps -
-
- - - - {project?.isPrivate && ( -
- - - Auto generate is not available - for private projects to - maintain document privacy. - -
- )} -
- +
+ + + + {project?.isPrivate && ( +
+ + + Auto generate is not available + for private projects to + maintain document privacy. + +
+ )} + + )} + headingSize="extraSmall" + spacing="comfortable" + heading="Information Gaps" + /> )} name="informationGap" value={informationGaps} @@ -662,36 +664,38 @@ function StoryAnalysisModal(props: Props) { className={styles.editor} labelContainerClassName={styles.labelContainer} label={( - <> -
- Analytical Statament -
-
- - - - {project?.isPrivate && ( -
- - - Auto generate is not available - for private projects to - maintain document privacy. - -
- )} -
- +
+ + + + {project?.isPrivate && ( +
+ + + Auto generate is not available + for private projects to + maintain document privacy. + +
+ )} + + )} + headingSize="extraSmall" + spacing="comfortable" + heading="Analytical Statament" + /> )} name="analyticalStatement" value={analyticalStatement} @@ -704,36 +708,38 @@ function StoryAnalysisModal(props: Props) { labelContainerClassName={styles.labelContainer} inputSectionClassName={styles.inputSection} label={( - <> -
- My Analysis -
-
- - - - {project?.isPrivate && ( -
- - - Auto generate is not available - for private projects to - maintain document privacy. - -
- )} -
- +
+ + + + {project?.isPrivate && ( +
+ + + Auto generate is not available + for private projects to + maintain document privacy. + +
+ )} + + )} + headingSize="extraSmall" + spacing="comfortable" + heading="My Analysis" + /> )} name="reportText" value={reportText} diff --git a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/styles.css b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/styles.css index f7f3369a04..91a35bc0ff 100644 --- a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/styles.css +++ b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/styles.css @@ -128,24 +128,10 @@ .editor { display: flex; flex-grow: 1; - gap: var(--dui-width-separator-thin); - .label-container { - display: flex; - justify-content: space-between; - padding-bottom: var(--dui-spacing-small); - color: var(--dui-color-text); - font-size: var(--dui-font-size-large); - font-weight: var(--dui-font-weight-bold); - } - - .label-container-action { - display: flex; - - .brain-icon { - width: auto; - height: var(--dui-font-size-extra-large); - } + .brain-icon { + width: auto; + height: var(--dui-font-size-extra-large); } } }