[arvados] updated: 2.7.0-6073-g8f37f59c4b
git repository hosting
git at public.arvados.org
Tue Mar 26 18:30:55 UTC 2024
Summary of changes:
.../project-details-card/project-details-card.tsx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
via 8f37f59c4ba2af1de35a1b7dd127a3fc7bee382b (commit)
from da404e589f156c1feaba43a48e773986e19266d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 8f37f59c4ba2af1de35a1b7dd127a3fc7bee382b
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Tue Mar 26 14:30:51 2024 -0400
21224: set html tags to dangerously render in description section Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx
index 57fa33ea28..e945d5378b 100644
--- a/services/workbench2/src/views-components/project-details-card/project-details-card.tsx
+++ b/services/workbench2/src/views-components/project-details-card/project-details-card.tsx
@@ -83,7 +83,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
display: 'flex',
flexDirection: 'column',
paddingTop: 0,
- paddingLeft: '0.5rem',
+ paddingLeft: '0.1rem',
},
nameSection: {
display: 'flex',
@@ -325,9 +325,10 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ classes, currentResource, fro
<Typography
className={classes.description}
data-cy='project-description'
- >
- {description}
- </Typography>
+ //dangerouslySetInnerHTML is ok here only if description is sanitized,
+ //which it is before it is loaded into the redux store
+ dangerouslySetInnerHTML={{ __html: description }}
+ />
</Collapse>
</section>
</section>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list