fix: borders
This commit is contained in:
1 parent
38f0ca26da
commit
b70933b704
8 files changed
+31
-31
No files matched your search
@@ -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={() => {
|
||||
|
||||
Reference in new issue
Block a user