Skip to content

Commit ccb21f6

Browse files
authored
Merge pull request #1338 from topcoder-platform/PM-3072_markdown-for-aiworkflow-desc
update styling form md renderer
2 parents 6f77e6c + 4b9a3d2 commit ccb21f6

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

src/apps/review/src/pages/reviews/components/AiModelModal/AiModelModal.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
}
1717
}
1818

19+
.mdContainer {
20+
& > * {
21+
all: revert-layer;
22+
}
23+
}
24+
1925
.modelIcon {
2026
width: 60px;
2127
height: 60px;

src/apps/review/src/pages/reviews/components/AiModelModal/AiModelModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const AiModelModal: FC<AiModelModalProps> = props => (
3636
</div>
3737

3838
<p className={styles.modelDescription}>
39-
<MarkdownReview value={props.model.description} />
39+
<MarkdownReview className={styles.mdContainer} value={props.model.description} />
4040
</p>
4141
</div>
4242
</BaseModal>

src/apps/review/src/pages/reviews/components/ScorecardHeader/ScorecardHeader.module.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
gap: $sp-4;
2323
}
2424

25+
.mdContainer {
26+
& > * {
27+
all: revert-layer;
28+
}
29+
}
30+
2531
.workflowIcon {
2632
width: 60px;
2733
height: 60px;
@@ -105,7 +111,7 @@
105111
height: 20px;
106112
stroke: #0a0a0a;
107113
}
108-
114+
109115
&.iconFile {
110116
path {
111117
fill: #0A0A0A;

src/apps/review/src/pages/reviews/components/ScorecardHeader/ScorecardHeader.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ const ScorecardHeader: FC = () => {
106106
</div>
107107
</div>
108108
<p className={styles.workflowDescription}>
109-
<MarkdownReview value={workflow.description} />
109+
<MarkdownReview
110+
className={styles.mdContainer}
111+
value={workflow.description}
112+
/>
110113
</p>
111114
{/* <div className={styles.workflowFileLink}>
112115
<a href={workflow.defUrl}>

0 commit comments

Comments
 (0)