From 84d9b41e00a8af3f55616ffd7a0ce47ba31ca484 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Mon, 26 Feb 2024 15:49:48 -0500 Subject: [PATCH] 21224: expando works Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../project-details-card.tsx | 42 +++++++++---------- 1 file changed, 19 insertions(+), 23 deletions(-) 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 351e645db5..141d5d7ceb 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 @@ -30,7 +30,7 @@ type CssRules = | 'root' | 'selected' | 'cardHeader' - | 'descriptionLabel' + | 'descriptionToggle' | 'showMore' | 'noDescription' | 'userNameContainer' @@ -70,11 +70,11 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ cardHeader: { padding: '0.2rem 0.4rem 0.1rem 1rem', }, - descriptionLabel: { + descriptionToggle: { display: 'flex', flexDirection: 'row', - alignItems: 'center', cursor: 'pointer', + paddingBottom: '0.5rem', }, cardContent: { display: 'flex', @@ -117,7 +117,8 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ marginTop: '1rem', }, description: { - marginTop: '1rem', + maxWidth: '90%', + marginTop: 0, }, }); @@ -362,16 +363,24 @@ const ProjectCard: React.FC = ({ classes, currentResource, fro
ev.stopPropagation()}> {description ? (
- + - {description.slice(0, 100)} - + + {description} + + +
) : ( = ({ classes, currentResource, fro )} - -
ev.stopPropagation()}> - - {description} - -
-
); }; -- 2.30.2