diff --git a/packages/web/components/elements/ProgressBarVertical.tsx b/packages/web/components/elements/ProgressBarVertical.tsx index 9f87d789d..aaa451de7 100644 --- a/packages/web/components/elements/ProgressBarVertical.tsx +++ b/packages/web/components/elements/ProgressBarVertical.tsx @@ -17,6 +17,7 @@ export function ProgressBarVertical(props: ProgressBarVProps): JSX.Element { borderRadius: '$1', overflow: 'hidden', backgroundColor: props.backgroundColor, + mr: '12px', }} > - - - - - {/* */} - {props.item.labels?.map(({ name, color }, index) => ( - - ))} - {/* */} - {props.item.description} - - - - {props.item.author && ( - {removeHTMLTags(props.item.author)} - )} - - - - ) +const cardTitleStyle = { + ...ellipsisText, + width:'100%', + fontSize: '14px', + fontWeight: '600', + textAlign: 'left', } +// Props type CardTitleProps = { title: string } -function CardTitle(props: CardTitleProps): JSX.Element { +// Functions +function CardTitle( + props: CardTitleProps, +): JSX.Element { return ( - + {props.title} ) } + +// Component +export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element { + return ( + <> + {props.layout === 'GRID_LAYOUT' ? ( + { + props.handleAction('showDetail') + }} + > + + + + { + // This is here to prevent menu click events from bubbling + // up and causing us to "click" on the link item. + e.stopPropagation() + }} + > + + } + actionHandler={props.handleAction} + /> + + + + + {props.item.author && ( + {removeHTMLTags(props.item.author)} + )} + {props.originText && ( + <> + + + {props.originText} + + + )} + + + + + + {props.item.description} + + + + {props.item.labels?.map(({ name, color }, index) => ( + + ))} + + + + + ) : ( + // ELSE display List Layout + + + + + + {props.item.labels?.map(({ name, color }, index) => ( + + ))} + {props.item.description} + + + + {props.item.author && ( + {removeHTMLTags(props.item.author)} + )} + + + + )} + + ) +}