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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
love_飞影
Neos
Commits
153bc5a9
Commit
153bc5a9
authored
Jul 20, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 90%
parent
0fbbf24e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
src/ui/Duel/Message/YesNoModal/index.module.scss
src/ui/Duel/Message/YesNoModal/index.module.scss
+0
-0
src/ui/Duel/PlayMat/Mat/index.module.scss
src/ui/Duel/PlayMat/Mat/index.module.scss
+4
-6
src/ui/Duel/PlayMat/Mat/index.tsx
src/ui/Duel/PlayMat/Mat/index.tsx
+5
-5
No files found.
src/ui/Duel/Message/YesNoModal/index.scss
→
src/ui/Duel/Message/YesNoModal/index.
module.
scss
View file @
153bc5a9
File moved
src/ui/Duel/PlayMat/Mat/index.scss
→
src/ui/Duel/PlayMat/Mat/index.
module.
scss
View file @
153bc5a9
section
#mat
{
// margin-top: 200px;
// padding-top: 50px; // 先不管 后面调整
section
.mat
{
position
:
relative
;
#
camera
{
.
camera
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -10,7 +8,7 @@ section#mat {
align-items
:
center
;
// perspective: var(--perspective);
}
#
plane
{
.
plane
{
transform
:
translateX
(
0
)
translateY
(
0
)
translateZ
(
0
)
rotateX
(
var
(
--
plane-rotate-x
));
width
:
fit-content
;
...
...
@@ -19,7 +17,7 @@ section#mat {
}
}
.
mat-card-
container
{
.container
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
...
...
src/ui/Duel/PlayMat/Mat/index.tsx
View file @
153bc5a9
import
"
./index
.scss
"
;
import
styles
from
"
./index.module
.scss
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
...
...
@@ -12,7 +12,7 @@ export const Mat: React.FC = () => {
const
snap
=
useSnapshot
(
cardStore
.
inner
);
return
(
<
section
id
=
"mat"
className
=
"mat"
style=
{
{
width
:
"
100%
"
,
}
}
...
...
@@ -30,11 +30,11 @@ export const Mat: React.FC = () => {
};
const
Plane
:
React
.
FC
<
React
.
PropsWithChildren
>
=
({
children
})
=>
(
<
div
id=
"camera"
>
<
div
id=
"plane"
>
{
children
}
</
div
>
<
div
className=
{
styles
.
camera
}
>
<
div
className=
{
styles
.
plane
}
>
{
children
}
</
div
>
</
div
>
);
const
CardContainer
:
React
.
FC
<
React
.
PropsWithChildren
>
=
({
children
})
=>
(
<
div
className=
"mat-card-container"
>
{
children
}
</
div
>
<
div
className=
{
styles
.
container
}
>
{
children
}
</
div
>
);
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