diff --git a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
index 88b11e166..b52ebb69e 100644
--- a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
+++ b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
@@ -1,8 +1,11 @@
-import { VStack, HStack, SpanBox } from '../../elements/LayoutPrimitives'
+import { Box, VStack, HStack, SpanBox } from '../../elements/LayoutPrimitives'
import { StyledText } from '../../elements/StyledText'
import { removeHTMLTags } from '../ArticleSubtitle'
+import { MoreOptionsIcon } from '../../elements/images/MoreOptionsIcon'
import { theme } from '../../tokens/stitches.config'
+import { CardMenu } from '../CardMenu'
import { LabelChip } from '../../elements/LabelChip'
+import { ProgressBar } from '../../elements/ProgressBar'
import type { LinkedItemCardProps } from './CardTypes'
import { ProgressBarVertical } from '../../elements/ProgressBarVertical'
@@ -16,62 +19,244 @@ const ellipsisText = {
margin: 'auto 0',
}
+const cardTitleGridStyle = {
+ mt: '0',
+ mb: '0',
+ fontSize: '18px',
+ textAlign: 'left',
+ lineHeight: '1.25',
+ // whiteSpace: 'nowrap',
+ // textOverflow: 'ellipsis',
+ width: '100%',
+ // overflow: 'hidden',
+}
+
+const cardTitleListStyle = {
+ ...ellipsisText,
+ fontSize: '14px',
+ fontWeight: '600',
+ textAlign: 'left',
+}
+
export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
return (
-
-
-
-
-
- {/* */}
- {props.item.labels?.map(({ name, color }, index) => (
-
- ))}
- {/* */}
- {props.item.description}
-
+ <>
+ {props.layout !== 'GRID_LAYOUT' ? (
+ // {
+ // props.handleAction('showDetail')
+ // }}
+ // >
+ // {/* {props.item.image && props.layout !== 'LIST_LAYOUT' && (
+ // {
+ // ;(e.target as HTMLElement).style.display = 'none'
+ // }}
+ // />
+ // )} */}
+ //
+ //
+ //
+ // {
+ // // 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) => (
+ //
+ // ))}
+ //
+ //
+ //
+ 'jjjjjjjjjjjj'
+ ) : (
+ // )}
-
- {props.item.author && (
- {removeHTMLTags(props.item.author)}
- )}
-
-
-
+
+
+
+
+ {/* */}
+ {props.item.labels?.map(({ name, color }, index) => (
+
+ ))}
+ {/* */}
+ {props.item.description}
+
+
+
+ {props.item.author && (
+ {removeHTMLTags(props.item.author)}
+ )}
+
+
+
+ )}
+ >
)
}
@@ -79,19 +264,84 @@ type CardTitleProps = {
title: string
}
-function CardTitle(props: CardTitleProps): JSX.Element {
+function CardTitle(
+ props: CardTitleProps,
+ cardProps: LinkedItemCardProps
+): JSX.Element {
return (
{props.title}
)
}
+
+// export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
+// return (
+//
+//
+//
+//
+//
+// {/* */}
+// {props.item.labels?.map(({ name, color }, index) => (
+//
+// ))}
+// {/* */}
+// {props.item.description}
+//
+
+//
+// {props.item.author && (
+// {removeHTMLTags(props.item.author)}
+// )}
+//
+//
+//
+// )
+// }
+
+// type CardTitleProps = {
+// title: string
+// }
diff --git a/packages/web/components/templates/library/LibraryList.tsx b/packages/web/components/templates/library/LibraryList.tsx
index d7ad55f3c..71c276e98 100644
--- a/packages/web/components/templates/library/LibraryList.tsx
+++ b/packages/web/components/templates/library/LibraryList.tsx
@@ -83,7 +83,8 @@ export function LibraryList(props: LibraryListProps): JSX.Element {
>
{viewerData?.me && (
{