diff --git a/packages/web/components/elements/ProgressBarVertical.tsx b/packages/web/components/elements/ProgressBarVertical.tsx
new file mode 100644
index 000000000..9f87d789d
--- /dev/null
+++ b/packages/web/components/elements/ProgressBarVertical.tsx
@@ -0,0 +1,32 @@
+import { Box } from './../elements/LayoutPrimitives'
+
+type ProgressBarVProps = {
+ fillPercentage: number
+ fillColor: string
+ backgroundColor: string
+ borderRadius: string
+ height?: string
+}
+
+export function ProgressBarVertical(props: ProgressBarVProps): JSX.Element {
+ return (
+
+
+
+ )
+}
diff --git a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
index d42213806..88b11e166 100644
--- a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
+++ b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx
@@ -1,165 +1,76 @@
-import { Box, VStack, HStack, SpanBox } from '../../elements/LayoutPrimitives'
-import { CoverImage } from '../../elements/CoverImage'
+import { 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'
+
+//Styles
+const ellipsisText = {
+ overflow: 'hidden',
+ display: '-webkit-box',
+ WebkitLineClamp: 1,
+ WebkitBoxOrient: 'vertical',
+ pl: '10px',
+ margin: 'auto 0',
+}
export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
return (
{
- props.handleAction('showDetail')
+ alignment="start"
+ css={{
+ width: '100%',
}}
>
- {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.labels?.map(({ name, color }, index) => (
+
+ ))}
+ {/* */}
{props.item.description}
+
+
+ {props.item.author && (
+ {removeHTMLTags(props.item.author)}
+ )}
+
-
- {props.item.labels?.map(({ name, color }, index) => (
-
- ))}
-
-
)
}
@@ -174,15 +85,10 @@ function CardTitle(props: CardTitleProps): JSX.Element {
style="listTitle"
data-testid="listTitle"
css={{
- mt: '0',
- mb: '0',
- fontSize: '18px',
+ ...ellipsisText,
+ fontSize: '14px',
+ fontWeight: '600',
textAlign: 'left',
- lineHeight: '1.25',
- // whiteSpace: 'nowrap',
- // textOverflow: 'ellipsis',
- width: '100%',
- // overflow: 'hidden',
}}
>
{props.title}
diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts
index 5694c0bcf..2fcf45ce5 100644
--- a/packages/web/components/tokens/stitches.config.ts
+++ b/packages/web/components/tokens/stitches.config.ts
@@ -125,6 +125,8 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
grayLine: 'hsl(0 0% 88.7%)',
grayBorderHover: 'hsl(0 0% 78.0%)',
grayText: '#3B3938',
+ graySeparator: '#DADADA',
+ grayProgressBackground: '#FFFFFF',
// Semantic Colors
highlightBackground: 'rgba(255, 210, 52, 0.65)',
@@ -196,6 +198,8 @@ const darkThemeSpec = {
grayLine: 'hsl(0 0% 19.9%)',
grayBorderHover: 'hsl(0 0% 31.2%)',
grayText: '#CDCDCD',
+ graySeparator: '#323232',
+ grayProgressBackground: '#616161',
// Semantic Colors
highlightBackground: '#867740',
diff --git a/packages/web/styles/globals.css b/packages/web/styles/globals.css
index f8da27b56..a74cbeeac 100644
--- a/packages/web/styles/globals.css
+++ b/packages/web/styles/globals.css
@@ -310,7 +310,7 @@ button {
background-clip: padding-box;
}
-.omnivore-masonry-grid_column > div {
- /* background: grey; */
+/* .omnivore-masonry-grid_column > div {
+ background: grey;
margin-bottom: 16px;
-}
\ No newline at end of file
+} */
\ No newline at end of file