mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #559 from omnivore-app/fix/highlight-card-list
Make the highlight cards work a little better in list mode
This commit is contained in:
commit
da9af1e05a
1 changed files with 5 additions and 6 deletions
|
|
@ -19,12 +19,13 @@ export function HighlightItemCard(props: HighlightItemCardProps): JSX.Element {
|
|||
css={{
|
||||
p: '$2',
|
||||
height: '100%',
|
||||
maxWidth: '498px',
|
||||
borderRadius: '6px',
|
||||
width: '100%',
|
||||
borderRadius: '0px',
|
||||
cursor: 'pointer',
|
||||
wordBreak: 'break-word',
|
||||
overflow: 'clip',
|
||||
border: '1px solid $grayBorder',
|
||||
borderBottom: 'none',
|
||||
boxShadow: '0px 3px 11px rgba(32, 31, 29, 0.04)',
|
||||
bg: '$grayBg',
|
||||
'&:focus': {
|
||||
|
|
@ -49,6 +50,7 @@ export function HighlightItemCard(props: HighlightItemCardProps): JSX.Element {
|
|||
css={{
|
||||
background: '$highlightBackground',
|
||||
color: '$highlightText',
|
||||
fontSize: '14px',
|
||||
}}
|
||||
>
|
||||
{props.item.quote}
|
||||
|
|
@ -75,13 +77,10 @@ export function HighlightItemCard(props: HighlightItemCardProps): JSX.Element {
|
|||
)}
|
||||
<StyledText
|
||||
css={{
|
||||
marginLeft: '$2',
|
||||
fontWeight: '700',
|
||||
}}
|
||||
>
|
||||
{props.item.title
|
||||
.substring(0, 50)
|
||||
.concat(props.item.title.length > 50 ? '...' : '')}
|
||||
{props.item.title}
|
||||
</StyledText>
|
||||
</HStack>
|
||||
</VStack>
|
||||
|
|
|
|||
Loading…
Reference in a new issue