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
baichixing
Neos
Commits
93fae549
Commit
93fae549
authored
Jul 21, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 95%
parent
153bc5a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
26 deletions
+22
-26
src/ui/Duel/PlayMat/Card/index.module.scss
src/ui/Duel/PlayMat/Card/index.module.scss
+1
-1
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+1
-1
src/ui/Duel/PlayMat/Mat/index.module.scss
src/ui/Duel/PlayMat/Mat/index.module.scss
+1
-0
src/ui/Duel/PlayMat/Mat/index.tsx
src/ui/Duel/PlayMat/Mat/index.tsx
+19
-24
No files found.
src/ui/Duel/PlayMat/Card/index.module.scss
View file @
93fae549
...
...
@@ -30,7 +30,7 @@
z-index
:
1
;
transform
:
translateZ
(
0
.5px
);
}
&
.focus
.cover
{
&
.focus
ing
.cover
{
animation
:
focus
0
.6s
ease-in-out
;
}
.back
{
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
93fae549
...
...
@@ -307,7 +307,7 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
>
<
div
className=
{
classnames
(
styles
[
"
img-wrap
"
],
{
[
styles
.
focus
]:
classFocus
,
[
styles
.
focus
ing
]:
classFocus
,
})
}
>
<
YgoCard
...
...
src/ui/Duel/PlayMat/Mat/index.module.scss
View file @
93fae549
section
.mat
{
position
:
relative
;
width
:
"100%"
;
.camera
{
height
:
100%
;
display
:
flex
;
...
...
src/ui/Duel/PlayMat/Mat/index.tsx
View file @
93fae549
...
...
@@ -9,32 +9,27 @@ import { Card } from "../Card";
// 后面再改名
export
const
Mat
:
React
.
FC
=
()
=>
{
const
snap
=
useSnapshot
(
cardStore
.
inner
);
return
(
<
section
className=
"mat"
style=
{
{
width
:
"
100%
"
,
}
}
>
<
Plane
>
<
Bg
/>
<
CardContainer
>
{
snap
.
map
((
_cardSnap
,
i
)
=>
(
<
Card
key=
{
i
}
idx=
{
i
}
/>
))
}
</
CardContainer
>
</
Plane
>
<
section
className=
{
styles
.
mat
}
>
<
div
className=
{
styles
.
camera
}
>
<
div
className=
{
styles
.
plane
}
>
<
Bg
/>
<
div
className=
{
styles
.
container
}
>
<
Cards
/>
</
div
>
</
div
>
</
div
>
</
section
>
);
};
const
Plane
:
React
.
FC
<
React
.
PropsWithChildren
>
=
({
children
})
=>
(
<
div
className=
{
styles
.
camera
}
>
<
div
className=
{
styles
.
plane
}
>
{
children
}
</
div
>
</
div
>
);
const
CardContainer
:
React
.
FC
<
React
.
PropsWithChildren
>
=
({
children
})
=>
(
<
div
className=
{
styles
.
container
}
>
{
children
}
</
div
>
);
const
Cards
:
React
.
FC
=
()
=>
{
const
snap
=
useSnapshot
(
cardStore
.
inner
);
return
(
<>
{
snap
.
map
((
_cardSnap
,
i
)
=>
(
<
Card
key=
{
i
}
idx=
{
i
}
/>
))
}
</>
);
};
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