[arvados] updated: 2.7.0-5852-g1981f887d7

git repository hosting git at public.arvados.org
Tue Feb 6 18:24:34 UTC 2024


Summary of changes:
 .../project-details-card/project-details-card.tsx     | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

       via  1981f887d7215bba5fa443c78c67d6a1d3e5bcb9 (commit)
      from  4d713ddf012c4097187068f225c0aaa7c6935b86 (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 1981f887d7215bba5fa443c78c67d6a1d3e5bcb9
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Tue Feb 6 13:24:29 2024 -0500

    21224: styling 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 8e3eaa729a..56191cc2b4 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
@@ -32,13 +32,13 @@ type CssRules =
     | 'root'
     | 'cardHeader'
     | 'showMore'
+    | 'noDescription'
     | 'nameContainer'
     | 'cardContent'
     | 'namePlate'
     | 'faveIcon'
     | 'frozenIcon'
     | 'contextMenuSection'
-    | 'attribute'
     | 'chipSection'
     | 'tag';
 
@@ -54,6 +54,10 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         cursor: 'pointer',
         maxWidth: '10rem',
     },
+    noDescription: {
+        color: theme.palette.grey['600'],
+        fontStyle: 'italic',
+    },
     nameContainer: {
         display: 'flex',
     },
@@ -87,12 +91,6 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         alignItems: 'center',
         marginTop: '0.6rem',
     },
-    attribute: {
-        marginBottom: '0.5rem',
-        marginRight: '1rem',
-        padding: '0.5rem',
-        borderRadius: '5px',
-    },
     chipSection: {
         display: 'flex',
         flexWrap: 'wrap',
@@ -303,7 +301,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ classes, currentResource, fro
                 }
             />
             <CardContent className={classes.cardContent}>
-                {description && (
+                {description ? (
                     <section>
                         <div className={classes.showMore}>
                             <RichTextEditorLink
@@ -313,7 +311,10 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ classes, currentResource, fro
                             />
                         </div>
                     </section>
-                )}
+                ) : (
+                        <Typography className={classes.noDescription}>no description available</Typography>
+                )
+                }
             </CardContent>
         </Card>
     );

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list