refactoring: first render improvements

This commit is contained in:
ner committed 2024-10-21 18:57:49 +03:00
1 parent 38aebcbe28
commit 0cface89bf
13 files changed
+38 -33

No files matched your search

@@ -65,7 +65,7 @@ const Actions = ({ onClose, show, className }: Props) => {
</Link>
<Button
aria-label='Watch show'
className={cn(rightClassName, 'bg-red-600')}
className={cn(rightClassName, 'bg-red-700')}
variant='destructive'
onClick={() =>
showTorrentsModal({
@@ -58,7 +58,7 @@ const components: VirtuosoProps<Actor, Context>['components'] = {
onClick={() => context?.onClick?.(actor.id.toString())}
>
<div className='overflow-hidden rounded-lg'>
<img height={180} width={120} src={actor.photoUrl} alt={actor.name} />
<img height={180} width={120} loading='lazy' src={actor.photoUrl} alt={actor.name} />
</div>
<div className='absolute left-0 top-0 flex size-full flex-col justify-between rounded-md bg-vignette p-2 py-1 text-sm text-white'>
<p className=' truncate'>{actor.name}</p>