1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +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 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"