fix: preview layout for small screens

This commit is contained in:
ner committed 2024-12-07 15:39:56 +02:00
1 parent 3615d5538d
commit ee5e457db7
1 file changed
+3 -3
@@ -37,6 +37,7 @@ const Actions = ({ show, className, externalLink }: Props) => {
return ( return (
<div className={cn('flex gap-2 flex-grow-0', className)}> <div className={cn('flex gap-2 flex-grow-0', className)}>
<div className='flex flex-wrap gap-2'>
<ButtonsGroup className='pointer-events-none'> <ButtonsGroup className='pointer-events-none'>
<Button aria-label='Show rating' variant='outline'> <Button aria-label='Show rating' variant='outline'>
<Star size={14} /> <Star size={14} />
@@ -83,10 +84,10 @@ const Actions = ({ show, className, externalLink }: Props) => {
) : ( ) : (
copyLink copyLink
)} )}
<ButtonsGroup className='ml-auto sm:ml-0'> </div>
<Button <Button
aria-label='Watch' aria-label='Watch'
className='bg-red-600 transition-all duration-200 hover:bg-red-600 hover:shadow-lg hover:shadow-red-600/60 dark:bg-red-700' className='ml-auto h-8 bg-red-600 transition-all duration-200 hover:bg-red-600 hover:shadow-lg hover:shadow-red-600/60 sm:ml-0 dark:bg-red-700'
variant='destructive' variant='destructive'
onClick={async () => { onClick={async () => {
const showTorrentsModal = (await import('../Torrents')).default; const showTorrentsModal = (await import('../Torrents')).default;
@@ -102,7 +103,6 @@ const Actions = ({ show, className, externalLink }: Props) => {
<Play size={15} /> <Play size={15} />
Watch Watch
</Button> </Button>
</ButtonsGroup>
</div> </div>
); );
}; };