1
0
Fork 0
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:
Cooper Ransom 2024-04-12 11:45:52 -04:00
parent d01cacae5d
commit cab22ae569

View file

@ -2,6 +2,7 @@ import { ProviderControls, ScrapeMedia } from "@movie-web/providers";
import classNames from "classnames";
import { useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { useMountedState } from "react-use";
import type { AsyncReturnType } from "type-fest";
@ -38,6 +39,7 @@ export function ScrapingPart(props: ScrapingProps) {
const { startScraping, sourceOrder, sources, currentSource } = useScrape();
const isMounted = useMountedState();
const { t } = useTranslation();
const navigate = useNavigate();
const containerRef = useRef<HTMLDivElement | null>(null);
const listRef = useRef<HTMLDivElement | null>(null);
@ -151,7 +153,7 @@ export function ScrapingPart(props: ScrapingProps) {
</div>
);
})}
<div className="flex gap-3">
<div className="flex gap-3 pb-3">
<Button
href="/"
theme="secondary"
@ -161,7 +163,7 @@ export function ScrapingPart(props: ScrapingProps) {
{t("notFound.goHome")}
</Button>
<Button
onClick={() => window.location.reload()}
onClick={() => navigate(`/${window.location.href}`)}
theme="purple"
padding="md:px-17 p-3"
className="mt-6"