fix: borders

This commit is contained in:
ner committed 2024-10-19 21:57:22 +03:00
1 parent 38f0ca26da
commit b70933b704
8 files changed
+31 -31

No files matched your search

@@ -40,7 +40,7 @@ const showPlayer = create(({ onResolve, magnet, backdrop, title }: Props) => {
}
return (
<Modal className='overflow-hidden border-none bg-black p-0' onClose={onResolve}>
<Modal className='max-w-[932px] overflow-hidden border-none bg-black p-0' onClose={onResolve}>
<div className='relative w-full overflow-hidden pt-[56.25%]'>
<div className='absolute left-0 top-0 size-full'>
<Player subtitles={subtitles} videos={videos} onReady={() => setIsReady(true)} />
@@ -57,7 +57,7 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
}, [providerKey, yts.isFetched, tpb.isFetched]);
return (
<Modal className='rounded-xl p-0 pb-1' onClose={onResolve}>
<Modal className='rounded-xl p-0' onClose={onResolve}>
<div className='grid grid-cols-[1fr_auto] items-center gap-3 p-2'>
<span className='truncate text-base'>{title}</span>
<Button className='h-6 p-2' variant={withYear ? 'default' : 'ghost'} onClick={() => setWithYear((w) => !w)}>
@@ -87,7 +87,7 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
}
return (
<TabsContent key={provider.key} value={provider.key}>
<TabsContent className='pb-1' key={provider.key} value={provider.key}>
<TorrentsTable
title={title}
backdrop={backdrop}
+11 -5
View File
@@ -30,13 +30,19 @@ const Preview: FC<Props> = ({ show: baseShow, className, onClose, poster }) => {
return (
<div
className={cn(
'flex flex-col md:flex-row gap-2 rounded-xl',
{ 'md:pl-0 md:pt-0 md:pb-0 pl-2 pt-2 pb-2 pr-2 border-none gap-0': isModal },
'flex flex-col md:flex-row gap-2 rounded-xl overflow-hidden',
{ 'gap-0 xs:pt-2 md:pt-0 pt-0': isModal },
className
)}
>
{poster || <Poster className='mx-auto' rounded='md:rounded-none md:rounded-l-xl' show={show} />}
<div className={cn('flex grow flex-col', { 'md:pb-2 md:pl-2 pb-0 pl-0 pt-2': isModal })}>
{poster || (
<Poster
className='mx-auto'
rounded='rounded-none rounded-t-xl md:rounded-xl sm:rounded-xl md:rounded-none md:rounded-l-xl'
show={show}
/>
)}
<div className={cn('flex grow flex-col bg-background', { 'p-2': isModal })}>
<span className='order-3 mb-4 text-3xl md:order-1 md:line-clamp-2'>{show.title}</span>
<div className='order-3 mb-4 flex w-full flex-wrap gap-5 whitespace-nowrap text-sm md:order-2'>
@@ -64,7 +70,7 @@ const Preview: FC<Props> = ({ show: baseShow, className, onClose, poster }) => {
};
export const showPreviewModal = create(({ onResolve, onClose, show }: Props & InstanceProps<void>) => (
<Modal className='block max-w-[932px] p-0' onClose={onResolve}>
<Modal className='block max-w-[932px] bg-background p-0 md:bg-black' onClose={onResolve}>
<Preview
show={show}
onClose={() => {