Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
1d787c07
Commit
1d787c07
authored
Mar 04, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize
parent
55e3775f
Pipeline
#20423
passed with stages
in 4 minutes and 7 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
neos.config.json
neos.config.json
+14
-0
src/ui/Duel/layout.tsx
src/ui/Duel/layout.tsx
+8
-2
No files found.
neos.config.json
View file @
1d787c07
...
@@ -38,6 +38,20 @@
...
@@ -38,6 +38,20 @@
"z"
:
1
"z"
:
1
},
},
"floating"
:
0.02
"floating"
:
0.02
},
"layout"
:
{
"header"
:
{
"height"
:
80
},
"content"
:
{
"height"
:
800
},
"sider"
:
{
"width"
:
400
},
"footer"
:
{
"height"
:
80
}
}
}
}
}
}
}
src/ui/Duel/layout.tsx
View file @
1d787c07
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
Layout
}
from
"
antd
"
;
import
{
Layout
}
from
"
antd
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
layoutConfig
=
NeosConfig
.
ui
.
layout
;
const
{
Header
,
Footer
,
Sider
,
Content
}
=
Layout
;
const
{
Header
,
Footer
,
Sider
,
Content
}
=
Layout
;
const
headerStyle
:
React
.
CSSProperties
=
{
const
headerStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
textAlign
:
"
center
"
,
color
:
"
#fff
"
,
color
:
"
#fff
"
,
height
:
64
,
height
:
layoutConfig
.
header
.
height
,
paddingInline
:
50
,
paddingInline
:
50
,
lineHeight
:
"
64px
"
,
lineHeight
:
"
64px
"
,
};
};
...
@@ -14,6 +16,7 @@ const headerStyle: React.CSSProperties = {
...
@@ -14,6 +16,7 @@ const headerStyle: React.CSSProperties = {
const
contentStyle
:
React
.
CSSProperties
=
{
const
contentStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
textAlign
:
"
center
"
,
minHeight
:
120
,
minHeight
:
120
,
height
:
layoutConfig
.
content
.
height
,
lineHeight
:
"
120px
"
,
lineHeight
:
"
120px
"
,
};
};
...
@@ -25,6 +28,7 @@ const siderStyle: React.CSSProperties = {
...
@@ -25,6 +28,7 @@ const siderStyle: React.CSSProperties = {
const
footerStyle
:
React
.
CSSProperties
=
{
const
footerStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
textAlign
:
"
center
"
,
height
:
layoutConfig
.
footer
.
height
,
color
:
"
#fff
"
,
color
:
"
#fff
"
,
};
};
...
@@ -36,7 +40,9 @@ const NeosLayout = (props: {
...
@@ -36,7 +40,9 @@ const NeosLayout = (props: {
})
=>
{
})
=>
{
return
(
return
(
<
Layout
>
<
Layout
>
<
Sider
style=
{
siderStyle
}
>
{
props
.
sider
}
</
Sider
>
<
Sider
style=
{
siderStyle
}
width=
{
layoutConfig
.
sider
.
width
}
>
{
props
.
sider
}
</
Sider
>
<
Layout
>
<
Layout
>
<
Header
style=
{
headerStyle
}
>
{
props
.
header
}
</
Header
>
<
Header
style=
{
headerStyle
}
>
{
props
.
header
}
</
Header
>
<
Content
style=
{
contentStyle
}
>
{
props
.
content
}
</
Content
>
<
Content
style=
{
contentStyle
}
>
{
props
.
content
}
</
Content
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment