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
338735da
Commit
338735da
authored
Aug 20, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: some styles
parent
e8fc6fda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
src/ui/WaitRoom/index.module.scss
src/ui/WaitRoom/index.module.scss
+7
-1
src/ui/WaitRoom/index.tsx
src/ui/WaitRoom/index.tsx
+14
-4
No files found.
src/ui/WaitRoom/index.module.scss
View file @
338735da
...
...
@@ -54,9 +54,15 @@
.inner
{
position
:
absolute
;
left
:
0
;
width
:
150px
;
height
:
70px
;
filter
:
blur
(
120px
);
transition
:
0
.3s
;
}
&
.ready
.inner
{
width
:
250px
;
height
:
100px
;
filter
:
blur
(
1
20px
);
filter
:
blur
(
1
00px
)
brightness
(
1
.2
)
saturate
(
1
.2
);
}
&
.me
{
box-shadow
:
-5px
0
20px
0
rgba
(
0
,
115
,
255
,
0
.15
);
...
...
src/ui/WaitRoom/index.tsx
View file @
338735da
...
...
@@ -97,6 +97,7 @@ export const Component: React.FC = () => {
who=
{
Who
.
Me
}
player=
{
me
}
avatar=
{
user
?.
avatar_url
}
ready=
{
me
?.
state
===
PlayerState
.
READY
}
btn=
{
room
.
stage
===
RoomStage
.
WAITING
?
(
<
Button
...
...
@@ -138,6 +139,7 @@ export const Component: React.FC = () => {
key=
{
idx
}
who=
{
Who
.
Op
}
player=
{
player
}
ready=
{
op
?.
state
===
PlayerState
.
READY
}
btn=
{
room
.
stage
===
RoomStage
.
WAITING
?
null
:
(
<
MoraAvatar
...
...
@@ -177,12 +179,17 @@ enum Who {
// 玩家区域: 双方各有一个
const
PlayerZone
:
React
.
FC
<
{
btn
?:
React
.
ReactNode
;
// 在内部右侧可以放一个按钮
who
?
:
Who
;
who
:
Who
;
player
?:
Player
;
avatar
?:
string
;
// 因为对手的头像目前不清楚如何获取,因此暂时这里作为一个参数传入
}
>
=
({
btn
,
who
,
player
,
avatar
})
=>
{
ready
:
boolean
;
}
>
=
({
btn
,
who
,
player
,
avatar
,
ready
})
=>
{
return
(
<
div
className=
{
classNames
(
styles
[
"
side-box
"
],
who
&&
styles
[
who
])
}
>
<
div
className=
{
classNames
(
styles
[
"
side-box
"
],
styles
[
who
],
{
[
styles
.
ready
]:
ready
,
})
}
>
<
div
className=
{
styles
.
inner
}
></
div
>
<
div
style=
{
{
position
:
"
relative
"
}
}
>
<
Avatar
...
...
@@ -358,7 +365,10 @@ const ActionButton: React.FC<{
<
span
>
等待游戏开始
</
span
>
</>
)
:
(
<></>
<>
<
LoadingOutlined
/>
<
span
>
等待游戏开始
</
span
>
</>
)
}
</
SpecialButton
>
</
TpPopover
>
...
...
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