mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Display hover menu backgrounds
This commit is contained in:
parent
b61e627740
commit
90c8837c39
1 changed files with 18 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ import { CoverImage } from '../../elements/CoverImage'
|
|||
import dayjs from 'dayjs'
|
||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||
import { useState } from 'react'
|
||||
import { DotsThree } from 'phosphor-react'
|
||||
import { DotsThree, DotsThreeVertical } from 'phosphor-react'
|
||||
import Link from 'next/link'
|
||||
|
||||
dayjs.extend(relativeTime)
|
||||
|
|
@ -160,9 +160,23 @@ export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
|
|||
: null}
|
||||
</Box>
|
||||
{isHovered ? (
|
||||
<SpanBox css={{ marginLeft: 'auto', mt: '-5px' }}>
|
||||
<DotsThree size={25} color="#ADADAD" />
|
||||
</SpanBox>
|
||||
<Box
|
||||
css={{
|
||||
display: 'flex',
|
||||
marginLeft: 'auto',
|
||||
height: '30px',
|
||||
width: '30px',
|
||||
mt: '-5px',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
borderRadius: '1000px',
|
||||
'&:hover': {
|
||||
bg: '#EBEBEB',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<DotsThreeVertical size={25} weight="bold" color="#ADADAD" />
|
||||
</Box>
|
||||
) : (
|
||||
<Box
|
||||
css={{
|
||||
|
|
|
|||
Loading…
Reference in a new issue