fix: swiper

This commit is contained in:
ner committed 2024-03-25 15:31:17 +02:00
1 parent 1b87355925
commit 1aa145a98c
13 files changed
+125 -123

No files matched your search

@@ -51,10 +51,10 @@ const TableHeadSortable = ({
const hostAtom = atomWithStorage<string>('magnet-host', '');
const showHostManagerModal = create(({ onResolve, isOpen }) => {
const showHostManagerModal = create(({ onResolve }) => {
const [host, setHost] = useAtom(hostAtom);
return (
<Modal className='p-3 max-w-[200px] m-auto' isOpen={isOpen} onClose={() => onResolve()}>
<Modal className='p-3 max-w-[200px] m-auto' onClose={onResolve}>
<Input
autoFocus
placeholder='Enter host of Elementum'
@@ -66,7 +66,7 @@ const showHostManagerModal = create(({ onResolve, isOpen }) => {
);
});
const Torrents: FC<Props> = ({ title, year, isOpen, onResolve }) => {
const Torrents: FC<Props> = ({ title, year, onResolve }) => {
const hosts = useAtomValue(hostAtom);
const [sorting, setSorting] = useState<Sorting>({ by: ORDER.seeders });
const [withYear, setWithYear] = useState(true);
@@ -87,7 +87,7 @@ const Torrents: FC<Props> = ({ title, year, isOpen, onResolve }) => {
};
return (
<Modal className='p-0' isOpen={isOpen} onClose={() => onResolve()}>
<Modal className='p-0' onClose={onResolve}>
<Table className='rounded-xl overflow-hidden'>
<TableHeader>
<TableRow>
@@ -13,15 +13,11 @@ interface Props {
children?: ({ onPlay, disabled }: { onPlay: () => void; disabled: boolean }) => ReactNode;
}
const Trailer: FC<{ trailerKey?: string } & InstanceProps<void>> = ({ trailerKey, onResolve, isOpen }) => {
const Trailer: FC<{ trailerKey?: string } & InstanceProps<void>> = ({ trailerKey, onResolve }) => {
if (!trailerKey) return;
return (
<Modal
className='block p-0 min-h-[400px] border-none aspect-w-16 aspect-h-9'
onClose={() => onResolve()}
isOpen={isOpen}
>
<Modal className='block p-0 min-h-[400px] border-none aspect-w-16 aspect-h-9' onClose={onResolve}>
<iframe
allow='autoplay'
className='border-none rounded-lg'