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
848082e1
Commit
848082e1
authored
Mar 08, 2024
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: small
parent
c4365854
Pipeline
#25710
failed with stages
in 13 minutes and 57 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/ui/Duel/PlayMat/Card/index.module.scss
src/ui/Duel/PlayMat/Card/index.module.scss
+4
-2
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+5
-5
No files found.
src/ui/Duel/PlayMat/Card/index.module.scss
View file @
848082e1
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
// border-radius: 2px; // 这里好像会导致卡片分辨率降低
border-radius
:
2px
;
// 这里好像会导致卡片分辨率降低 -> 不,并不会
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.cover
{
.cover
{
...
@@ -107,7 +107,9 @@
...
@@ -107,7 +107,9 @@
display
:
block
!
important
;
display
:
block
!
important
;
background
:
var
(
--
shadow-color
)
!
important
;
background
:
var
(
--
shadow-color
)
!
important
;
border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
0
0
4px
0
var
(
--
shadow-color
)
,
0
0
25px
2px
#0099ff
87
;
box-shadow
:
0
0
4px
0
var
(
--
shadow-color
)
,
0
0
25px
2px
#0099ff
87
;
transform
:
translateZ
(
calc
((
var
(
--
z
))
*
1px
+
0
.1px
));
transform
:
translateZ
(
calc
((
var
(
--
z
))
*
1px
+
0
.1px
));
}
}
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
848082e1
...
@@ -282,11 +282,11 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
...
@@ -282,11 +282,11 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
/** 鼠标hover在手卡上的效果 不确定 先放着 */
/** 鼠标hover在手卡上的效果 不确定 先放着 */
const onMouse = (isEnter: boolean) =
>
() =
>
{
const onMouse = (isEnter: boolean) =
>
() =
>
{
//
if (isMe(card.location.controller) && card.location.zone === HAND)
{
if
(
isMe
(
card
.
location
.
controller
)
&&
card
.
location
.
zone
===
HAND
)
{
//
api.start(
{
api
.
start
({
// rd: isEnter ? 1
5 : 0,
rd
:
isEnter
?
5
:
0
,
//
});
});
//
}
}
}
;
}
;
//
<
<<
效果
<<<
//
<
<<
效果
<<<
...
...
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