fix: borders
This commit is contained in:
1 parent
38f0ca26da
commit
b70933b704
8 files changed
+31
-31
No files matched your search
@@ -18,11 +18,7 @@ const Poster: FC<Props> = ({ show, onClick, className, rounded, containerProps }
|
||||
return (
|
||||
<div
|
||||
{...(containerProps || {})}
|
||||
className={cn(
|
||||
'card-aspect-ratio relative bg-card text-card-foreground overflow-hidden rounded-lg text-lg',
|
||||
className,
|
||||
rounded
|
||||
)}
|
||||
className={cn('card-aspect-ratio relative bg-black overflow-hidden rounded-lg text-lg', className, rounded)}
|
||||
>
|
||||
<div className='flex size-full'>
|
||||
<img className={cn('size-full rounded-lg object-cover', rounded)} src={show.poster} alt={show.title} />
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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={() => {
|
||||
|
||||
@@ -102,7 +102,7 @@ const DialogContent = React.forwardRef<
|
||||
|
||||
return (
|
||||
<DialogPortal>
|
||||
<div className='fixed inset-0 z-50 size-full bg-black/40 will-change-[opacity]' ref={wrapperRef}>
|
||||
<div className='fixed inset-0 z-50 size-full bg-black/80' data-overlay ref={wrapperRef}>
|
||||
<DialogOverlay
|
||||
ref={(element) => {
|
||||
if (!element) return;
|
||||
|
||||
Reference in new issue
Block a user