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
2c8593f1
Commit
2c8593f1
authored
Jul 20, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 70%
parent
d4ce1437
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
29 deletions
+9
-29
src/ui/Duel/Message/CardModal/index.module.scss
src/ui/Duel/Message/CardModal/index.module.scss
+1
-1
src/ui/Duel/Message/CardModal/index.tsx
src/ui/Duel/Message/CardModal/index.tsx
+8
-28
No files found.
src/ui/Duel/Message/CardModal/index.module.scss
View file @
2c8593f1
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
row-gap
:
10px
;
row-gap
:
10px
;
}
}
.
card-modal-
info
{
.info
{
justify-content
:
space-between
;
justify-content
:
space-between
;
position
:
relative
;
position
:
relative
;
height
:
204px
;
// TODO - fix this
height
:
204px
;
// TODO - fix this
...
...
src/ui/Duel/Message/CardModal/index.tsx
View file @
2c8593f1
...
@@ -75,7 +75,7 @@ export const CardModal = () => {
...
@@ -75,7 +75,7 @@ export const CardModal = () => {
width=
{
CARD_WIDTH
}
width=
{
CARD_WIDTH
}
style=
{
{
borderRadius
:
4
}
}
style=
{
{
borderRadius
:
4
}
}
/>
/>
<
Space
direction=
"vertical"
className=
"card-modal-info"
>
<
Space
direction=
"vertical"
className=
{
styles
.
info
}
>
<
AtkLine
atk=
{
atk
}
def=
{
def
}
/>
<
AtkLine
atk=
{
atk
}
def=
{
def
}
/>
<
AttLine
<
AttLine
types=
{
extraCardTypes
(
types
||
0
)
}
types=
{
extraCardTypes
(
types
||
0
)
}
...
@@ -89,26 +89,6 @@ export const CardModal = () => {
...
@@ -89,26 +89,6 @@ export const CardModal = () => {
</
Space
>
</
Space
>
<
Divider
style=
{
{
margin
:
"
14px 0
"
}
}
></
Divider
>
<
Divider
style=
{
{
margin
:
"
14px 0
"
}
}
></
Divider
>
<
Desc
desc=
{
desc
}
/>
<
Desc
desc=
{
desc
}
/>
{
/* {nonEffectInteractivies.map((interactive, idx) => {
return (
<button
key={idx}
className="card-modal-btn"
onClick={() => {
sendSelectIdleCmdResponse(interactive.response);
cardModal.isOpen = false;
// 清空互动性
for (const card of cardStore.inner) {
card.idleInteractivities = [];
}
}}
>
{interactive.desc}
</button>
);
})}
<EffectButton meta={meta} effectInteractivies={effectInteractivies} /> */
}
</
div
>
</
div
>
</
Drawer
>
</
Drawer
>
);
);
...
@@ -129,7 +109,7 @@ const AttLine = (props: {
...
@@ -129,7 +109,7 @@ const AttLine = (props: {
.
map
((
t
)
=>
fetchStrings
(
"
!system
"
,
Type2StringCodeMap
.
get
(
t
)
||
0
))
.
map
((
t
)
=>
fetchStrings
(
"
!system
"
,
Type2StringCodeMap
.
get
(
t
)
||
0
))
.
join
(
"
/
"
);
.
join
(
"
/
"
);
return
(
return
(
<
div
className=
"attline"
>
<
div
className=
{
styles
.
attline
}
>
{
attribute
&&
<
Tag
>
{
attribute
}
</
Tag
>
}
{
attribute
&&
<
Tag
>
{
attribute
}
</
Tag
>
}
{
race
&&
<
Tag
>
{
race
}
</
Tag
>
}
{
race
&&
<
Tag
>
{
race
}
</
Tag
>
}
{
types
&&
<
Tag
>
{
types
}
</
Tag
>
}
{
types
&&
<
Tag
>
{
types
}
</
Tag
>
}
...
@@ -138,14 +118,14 @@ const AttLine = (props: {
...
@@ -138,14 +118,14 @@ const AttLine = (props: {
};
};
const
AtkLine
=
(
props
:
{
atk
?:
number
;
def
?:
number
})
=>
(
const
AtkLine
=
(
props
:
{
atk
?:
number
;
def
?:
number
})
=>
(
<
Space
size=
{
10
}
className=
"atkLine"
direction=
"vertical"
>
<
Space
size=
{
10
}
className=
{
styles
.
atkLine
}
direction=
"vertical"
>
<
div
>
<
div
>
<
div
className=
"title"
>
ATK
</
div
>
<
div
className=
{
styles
.
title
}
>
ATK
</
div
>
<
div
className=
"number"
>
{
props
.
atk
??
"
?
"
}
</
div
>
<
div
className=
{
styles
.
number
}
>
{
props
.
atk
??
"
?
"
}
</
div
>
</
div
>
</
div
>
<
div
>
<
div
>
<
div
className=
"title"
>
DEF
</
div
>
<
div
className=
{
styles
.
title
}
>
DEF
</
div
>
<
div
className=
"number"
>
{
props
.
def
??
"
?
"
}
</
div
>
<
div
className=
{
styles
.
number
}
>
{
props
.
def
??
"
?
"
}
</
div
>
</
div
>
</
div
>
</
Space
>
</
Space
>
);
);
...
@@ -164,7 +144,7 @@ const _CounterLine = (props: { counters: { [type: number]: number } }) => {
...
@@ -164,7 +144,7 @@ const _CounterLine = (props: { counters: { [type: number]: number } }) => {
return
(
return
(
<>
<>
{
counters
.
map
((
counter
)
=>
(
{
counters
.
map
((
counter
)
=>
(
<
div
className=
"card-modal-counter"
>
{
counter
}
</
div
>
<
div
>
{
counter
}
</
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