Style: all - change page padding to 20px
This commit is contained in:
@@ -6,8 +6,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"dev-host": "vite --host 0.0.0.0",
|
"dev-host": "vite --host 0.0.0.0",
|
||||||
"build": "vite build",
|
"build": "vite build && npm run typecheck",
|
||||||
"build-test": "vite build --mode testing",
|
"build-test": "vite build --mode testing",
|
||||||
|
"typecheck": "tsc",
|
||||||
"clean": "rimraf dist .eslintrc-auto-import.json auto-imports.d.ts",
|
"clean": "rimraf dist .eslintrc-auto-import.json auto-imports.d.ts",
|
||||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"format": "prettier --write src/",
|
"format": "prettier --write src/",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[data-component=system] {
|
[data-component=system] {
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[data-component=system-settings] {
|
[data-component=system-settings] {
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
|
||||||
.root-col {
|
.root-col {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[data-component=system-statistics] {
|
[data-component=system-statistics] {
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[data-component=system-tools-base] {
|
[data-component=system-tools-base] {
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[data-component=system-tools-code] {
|
[data-component=system-tools-code] {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
|
|
||||||
.card-box {
|
.card-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[data-component=system-tools-execute] {
|
[data-component=system-tools-execute] {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
|
|
||||||
.card-box {
|
.card-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
[data-component=tools-edit] {
|
[data-component=tools-edit] {
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
.card-box {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
.root-content {
|
.root-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -13,10 +19,11 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.draggable-content {
|
.draggable-content {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset-inline-end: 32px;
|
inset-inline-end: 48px;
|
||||||
inset-block-end: 48px;
|
inset-block-end: 48px;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[data-component=tools] {
|
[data-component=tools] {
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[data-component=tools-source] {
|
[data-component=tools-source] {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
|
|
||||||
.card-box {
|
.card-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.root-content {
|
.root-content {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
[data-component=tools-store-user] .root-content {
|
[data-component=tools-store-user] .root-content {
|
||||||
padding: {
|
padding: {
|
||||||
top: 80px;
|
top: 80px;
|
||||||
left: 30px;
|
left: 20px;
|
||||||
right: 30px;
|
right: 20px;
|
||||||
bottom: 30px;
|
bottom: 20px;
|
||||||
};
|
};
|
||||||
|
|
||||||
.root-box {
|
.root-box {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[data-component=tools-view] {
|
[data-component=tools-view] {
|
||||||
padding: 30px;
|
padding: 20px;
|
||||||
|
|
||||||
.card-box {
|
.card-box {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
[data-component=user] .root-content {
|
[data-component=user] .root-content {
|
||||||
padding: {
|
padding: {
|
||||||
top: 80px;
|
top: 80px;
|
||||||
left: 30px;
|
left: 20px;
|
||||||
right: 30px;
|
right: 20px;
|
||||||
bottom: 30px;
|
bottom: 20px;
|
||||||
};
|
};
|
||||||
|
|
||||||
.card-box {
|
.card-box {
|
||||||
|
|||||||
@@ -634,7 +634,7 @@ const Group = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen data-component={'system-group'}>
|
<FitFullscreen data-component={'system-group'}>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ const Log = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen>
|
<FitFullscreen>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -641,7 +641,7 @@ const Role = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen>
|
<FitFullscreen>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ const Category = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen data-component={'system-tools-category'}>
|
<FitFullscreen data-component={'system-tools-category'}>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -568,7 +568,7 @@ const Tools = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen>
|
<FitFullscreen>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1010,7 +1010,7 @@ const User = () => {
|
|||||||
<>
|
<>
|
||||||
<FitFullscreen>
|
<FitFullscreen>
|
||||||
<HideScrollbar
|
<HideScrollbar
|
||||||
style={{ padding: 30 }}
|
style={{ padding: 20 }}
|
||||||
isShowVerticalScrollbar
|
isShowVerticalScrollbar
|
||||||
autoHideWaitingTime={1000}
|
autoHideWaitingTime={1000}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import Playground from '@/components/Playground'
|
|||||||
import FitFullscreen from '@/components/common/FitFullscreen'
|
import FitFullscreen from '@/components/common/FitFullscreen'
|
||||||
import FlexBox from '@/components/common/FlexBox'
|
import FlexBox from '@/components/common/FlexBox'
|
||||||
import LoadingMask from '@/components/common/LoadingMask'
|
import LoadingMask from '@/components/common/LoadingMask'
|
||||||
|
import Card from '@/components/common/Card'
|
||||||
|
|
||||||
const Edit = () => {
|
const Edit = () => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
@@ -403,6 +404,7 @@ const Edit = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<FitFullscreen data-component={'tools-edit'}>
|
<FitFullscreen data-component={'tools-edit'}>
|
||||||
|
<Card>
|
||||||
<FlexBox direction={'horizontal'} className={'root-content'}>
|
<FlexBox direction={'horizontal'} className={'root-content'}>
|
||||||
<LoadingMask hidden={!loading}>
|
<LoadingMask hidden={!loading}>
|
||||||
<Playground.CodeEditor
|
<Playground.CodeEditor
|
||||||
@@ -438,6 +440,7 @@ const Edit = () => {
|
|||||||
</LoadingMask>
|
</LoadingMask>
|
||||||
{showDraggableMask && <div className={'draggable-mask'} />}
|
{showDraggableMask && <div className={'draggable-mask'} />}
|
||||||
</FlexBox>
|
</FlexBox>
|
||||||
|
</Card>
|
||||||
<Draggable
|
<Draggable
|
||||||
onStart={() => setShowDraggableMask(true)}
|
onStart={() => setShowDraggableMask(true)}
|
||||||
onStop={() => setShowDraggableMask(false)}
|
onStop={() => setShowDraggableMask(false)}
|
||||||
|
|||||||
Reference in New Issue
Block a user