mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
increase bottom padding on scraping buttons
This commit is contained in:
parent
d01cacae5d
commit
cab22ae569
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@ import { ProviderControls, ScrapeMedia } from "@movie-web/providers";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
import { useMountedState } from "react-use";
|
import { useMountedState } from "react-use";
|
||||||
import type { AsyncReturnType } from "type-fest";
|
import type { AsyncReturnType } from "type-fest";
|
||||||
|
|
||||||
|
@ -38,6 +39,7 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
const { startScraping, sourceOrder, sources, currentSource } = useScrape();
|
const { startScraping, sourceOrder, sources, currentSource } = useScrape();
|
||||||
const isMounted = useMountedState();
|
const isMounted = useMountedState();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const containerRef = useRef<HTMLDivElement | null>(null);
|
const containerRef = useRef<HTMLDivElement | null>(null);
|
||||||
const listRef = useRef<HTMLDivElement | null>(null);
|
const listRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
@ -151,7 +153,7 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3 pb-3">
|
||||||
<Button
|
<Button
|
||||||
href="/"
|
href="/"
|
||||||
theme="secondary"
|
theme="secondary"
|
||||||
|
@ -161,7 +163,7 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
{t("notFound.goHome")}
|
{t("notFound.goHome")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => window.location.reload()}
|
onClick={() => navigate(`/${window.location.href}`)}
|
||||||
theme="purple"
|
theme="purple"
|
||||||
padding="md:px-17 p-3"
|
padding="md:px-17 p-3"
|
||||||
className="mt-6"
|
className="mt-6"
|
||||||
|
|
Loading…
Reference in a new issue