diff --git a/src/App.tsx b/src/App.tsx index 2fda1e8..944475f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import { App as AntdApp, Layout, Row, Col, Collapse, Spin } from "antd"; +import { App as AntdApp, Layout, Row, Col, Collapse, Spin, Grid } from "antd"; import { LoadingOutlined } from "@ant-design/icons"; import { Routes, Route, useSearchParams, useNavigate } from "react-router-dom"; import Navbar from "./components/Navbar"; @@ -98,6 +98,9 @@ const App = () => { } }, [searchParams]); + const { useBreakpoint } = Grid; + const screens = useBreakpoint(); + const panels = [ { key: "templateMark", @@ -140,8 +143,9 @@ const App = () => { element={
{ style={{ background: "#1b2540", color: "white", - padding: "50px 50px 20px 50px", + padding: screens.md ? "50px 50px 20px 50px" : "30px 20px 20px 20px", }} >