diff --git a/src/components/MainPage.tsx b/src/components/MainPage.tsx index 2819a3d..ad55bba 100644 --- a/src/components/MainPage.tsx +++ b/src/components/MainPage.tsx @@ -1,7 +1,7 @@ "use client"; import { useState, useCallback } from "react"; -import { Typography, Space, Card, Button } from "antd"; +import { Typography, Space, Card, Button, theme } from "antd"; import { CloudUploadOutlined } from "@ant-design/icons"; import { ConfigSelector } from "./ConfigSelector"; import { VersionTable } from "./VersionTable"; @@ -16,6 +16,7 @@ interface MainPageProps { } export function MainPage({ initialConfigs }: MainPageProps) { + const { token } = theme.useToken(); const [configs, setConfigs] = useState<{ name: string; file: string }[]>(initialConfigs); const [selectedConfigFile, setSelectedConfigFile] = useState( @@ -67,11 +68,11 @@ export function MainPage({ initialConfigs }: MainPageProps) { style={{ maxWidth: 900, margin: "40px auto", - padding: "0 24px", + padding: `0 ${token.paddingLG}px`, }} > {/* Page header */} - + <Title level={2} style={{ marginBottom: token.marginLG }}> Mod Releaser @@ -99,7 +100,7 @@ export function MainPage({ initialConfigs }: MainPageProps) { style={{ display: "flex", justifyContent: "flex-end", - marginTop: 24, + marginTop: token.marginLG, }} >