Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -98,6 +98,9 @@ const App = () => {
}
}, [searchParams]);

const { useBreakpoint } = Grid;
const screens = useBreakpoint();

const panels = [
{
key: "templateMark",
Expand Down Expand Up @@ -140,8 +143,9 @@ const App = () => {
element={
<div
style={{
padding: 24,
paddingBottom: 150,
padding: screens.md ? 24 : 0,
paddingTop: screens.md ? 24 : 20,
paddingBottom: screens.md ? 150 : 8,
minHeight: 360,
background: backgroundColor,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CustomFooter: React.FC = () => {
style={{
background: "#1b2540",
color: "white",
padding: "50px 50px 20px 50px",
padding: screens.md ? "50px 50px 20px 50px" : "30px 20px 20px 20px",
}}
>
<Row justify="space-between" align="middle" gutter={[16, 16]}>
Expand Down
Loading