feat: update styles

This commit is contained in:
GyDi 2022-01-25 01:48:26 +08:00
parent ab1b5897a6
commit 3a73868c10
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084
4 changed files with 6 additions and 4 deletions

View File

@ -72,9 +72,9 @@
.the-content { .the-content {
position: absolute; position: absolute;
left: 0;
right: 0;
top: 30px; top: 30px;
left: 0;
right: 2px;
bottom: 10px; bottom: 10px;
} }
} }

View File

@ -9,6 +9,8 @@
width: 90%; width: 90%;
max-width: 850px; max-width: 850px;
margin: 0 auto; margin: 0 auto;
padding-right: 4px;
box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;

View File

@ -20,7 +20,7 @@ const BasePage: React.FC<Props> = (props) => {
{header} {header}
</header> </header>
<section data-windrag> <section>
<div className="base-content" style={contentStyle} data-windrag> <div className="base-content" style={contentStyle} data-windrag>
{children} {children}
</div> </div>

View File

@ -107,7 +107,7 @@ const Layout = () => {
<LayoutControl /> <LayoutControl />
</div> </div>
<div className="the-content" data-windrag> <div className="the-content">
<Routes> <Routes>
{routers.map(({ label, link, ele: Ele }) => ( {routers.map(({ label, link, ele: Ele }) => (
<Route key={label} path={link} element={<Ele />} /> <Route key={label} path={link} element={<Ele />} />