Skip to content

Commit

Permalink
Merge pull request #74 from aura-nw/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
quannguyen2724 authored Jun 11, 2024
2 parents de5e38e + 9249044 commit 066603f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/components/pages/homepage/comic2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default function Comic2(props: IComic) {
}
}, [])
return (
<div className={`${props.status.text == 'Upcoming' ? '[&_a:not(.author)]:pointer-events-none' : ''}`}>
<div className='w-full aspect-[16/23] rounded overflow-hidden'>
<div>
<div className='w-full aspect-[16/23] rounded overflow-hidden group'>
<Link
href={`/comic/${props.slug}`}
className='relative w-full h-full aspect-[160/230] mx-auto group'
className={`relative w-full h-full aspect-[160/230] mx-auto ${props.status.text == 'Upcoming' ? 'pointer-events-none' : 'pointer-events-auto'}`}
>
<div className='block h-full'>
<Image
Expand Down Expand Up @@ -86,7 +86,16 @@ export default function Comic2(props: IComic) {
<HeartIcon className="w-5 h-5" />
</div>
</div>
<div className='text-xs leading-4 mt-3 text-white'>{props[locale].description}</div>
<div className='text-xs leading-4 mt-3 text-white'
style={{
textOverflow: 'ellipsis',
overflow: 'hidden',
display: '-webkit-box',
WebkitLineClamp: 8,
WebkitBoxOrient: 'vertical',
whiteSpace: 'normal'
}}
>{props[locale].description}</div>
<div
className='mt-[6px] mb-1'
>
Expand Down

0 comments on commit 066603f

Please sign in to comment.