diff --git a/packages/web/components/elements/Button.tsx b/packages/web/components/elements/Button.tsx index 4d36a2b2d..f220190ff 100644 --- a/packages/web/components/elements/Button.tsx +++ b/packages/web/components/elements/Button.tsx @@ -244,6 +244,7 @@ export const Button = styled('button', { '&:hover': { opacity: 0.7, }, + '&:focus': { outline: 'none' }, }, articleActionIcon: { bg: 'transparent', diff --git a/packages/web/components/patterns/LibraryCards/LibraryCardStyles.tsx b/packages/web/components/patterns/LibraryCards/LibraryCardStyles.tsx index 19fdf4e4a..c69f90072 100644 --- a/packages/web/components/patterns/LibraryCards/LibraryCardStyles.tsx +++ b/packages/web/components/patterns/LibraryCards/LibraryCardStyles.tsx @@ -24,17 +24,24 @@ export const MenuStyle = { export const MetaStyle = { width: '100%', - color: '$thTextSubtle3', + color: '$thTextSubtle2', fontSize: '12px', - fontWeight: '400', + fontWeight: '500', fontFamily: '$display', + maxLines: 1, + textOverflow: 'ellipsis', + wordBreak: 'break-word', + lineHeight: 1.1, + overflowX: 'hidden', + overflowY: 'visible', } export const TitleStyle = { color: '$thTextContrast2', fontSize: '16px', fontWeight: '700', - lineHeight: '1', + maxLines: 2, + lineHeight: '1.25', fontFamily: '$display', overflow: 'hidden', textOverflow: 'ellipsis', @@ -66,8 +73,7 @@ export const AuthorInfoStyle = { textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: '240px', - overflow: 'hidden', - color: '$thTextSubtle3', + color: '$thNotebookSubtle', fontSize: '12px', fontWeight: '400', fontFamily: '$display', diff --git a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx index b5002cd22..7911dff91 100644 --- a/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx +++ b/packages/web/components/patterns/LibraryCards/LibraryGridCard.tsx @@ -89,7 +89,7 @@ export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element { {!isTouchScreenDevice() && ( { minHeight: '35px', pt: '15px', px: '15px', - color: '$grayText', }} distribution="start" > @@ -237,8 +236,6 @@ const LibraryGridCardContent = (props: LinkedItemCardProps): JSX.Element => { diff --git a/packages/web/components/patterns/LibraryCards/LibraryListCard.tsx b/packages/web/components/patterns/LibraryCards/LibraryListCard.tsx index be39fe6c2..df16d2a66 100644 --- a/packages/web/components/patterns/LibraryCards/LibraryListCard.tsx +++ b/packages/web/components/patterns/LibraryCards/LibraryListCard.tsx @@ -60,8 +60,7 @@ export function LibraryListCard(props: LinkedItemCardProps): JSX.Element { css={{ px: '20px', pl: '10px', - pt: '20px', - pb: '20px', + py: '15px', height: '100%', cursor: 'pointer', gap: '10px', @@ -100,7 +99,7 @@ export function LibraryListCard(props: LinkedItemCardProps): JSX.Element { {!isTouchScreenDevice() && ( - - - - + + - {props.item.title} + {props.item.title} + {(props.item.author?.length ?? 0 + originText.length) > 0 && ( {props.item.author} @@ -304,7 +293,7 @@ export function LibraryListCardContent( {originText} - + )}