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
11afd028
Commit
11afd028
authored
Aug 05, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: small
parent
3aeafe5a
Pipeline
#22902
failed with stages
in 19 minutes and 30 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
30 deletions
+34
-30
src/ui/NewWaitRoom/Chat.module.scss
src/ui/NewWaitRoom/Chat.module.scss
+4
-3
src/ui/NewWaitRoom/index.module.scss
src/ui/NewWaitRoom/index.module.scss
+20
-20
src/ui/NewWaitRoom/index.tsx
src/ui/NewWaitRoom/index.tsx
+9
-6
src/ui/Shared/IconFont/index.tsx
src/ui/Shared/IconFont/index.tsx
+1
-1
No files found.
src/ui/NewWaitRoom/Chat.module.scss
View file @
11afd028
...
...
@@ -16,10 +16,10 @@
}
.dialogs
{
padding
:
8px
0
;
@include
utils
.
scrollbar
;
.item
{
vertical-align
:
baseline
;
// font-size: 15px;
.name
{
font-weight
:
500
;
line-height
:
1
.375rem
;
...
...
@@ -30,11 +30,12 @@
margin-left
:
8px
;
}
.content
{
font-size
:
1
4
px
;
font-size
:
1
3
px
;
color
:
#ccc
;
margin-top
:
2px
;
}
padding
:
8px
8px
;
margin
:
0
8
px
;
margin
:
0
10
px
;
border-radius
:
8px
;
transition
:
0
.2s
;
&
:hover
{
...
...
src/ui/NewWaitRoom/index.module.scss
View file @
11afd028
...
...
@@ -7,6 +7,7 @@
--border-radius
:
10px
;
--sider-width
:
300px
;
.main
{
position
:
relative
;
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -22,6 +23,8 @@
height
:
100%
;
background-color
:
hsla
(
0
,
0%
,
100%
,
0
.05
);
transition
:
transform
0
.3s
;
backdrop-filter
:
blur
(
5px
);
z-index
:
1
;
}
}
...
...
@@ -30,17 +33,6 @@
gap
:
var
(
--
gap-between-side-and-battle
);
align-items
:
center
;
margin-top
:
80px
;
.battle
{
height
:
var
(
--
battle-icon-width
);
width
:
var
(
--
battle-icon-width
);
border-radius
:
50%
;
background
:
hsla
(
0
,
0%
,
100%
,
0
.1
);
backdrop-filter
:
blur
(
10px
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
48px
;
}
.side-box
{
height
:
120px
;
width
:
var
(
--
side-box-width
);
...
...
@@ -92,25 +84,19 @@
margin-left
:
auto
;
}
.
watch
{
.
btn-large
{
min-width
:
100px
;
height
:
40px
;
background
:
hsla
(
0
,
0%
,
100%
,
0
.1
);
border-radius
:
6px
;
display
:
flex
;
align-items
:
center
;
padding
-left
:
16px
;
gap
:
12
px
;
padding
:
0
16px
0
16px
;
gap
:
8
px
;
cursor
:
pointer
;
transition
:
0
.2s
;
.btn-watch
{
display
:
flex
;
align-items
:
center
;
gap
:
8px
;
}
.avatars-watch
{
height
:
100%
;
padding
:
0
8px
;
place-items
:
center
;
}
&
>
*
{
...
...
@@ -147,3 +133,17 @@
transform
:
translateX
(
calc
(
-1
*
var
(
--
sider-width
)
/
2
));
}
}
.room-name
{
position
:
absolute
;
top
:
40px
;
left
:
0
;
right
:
0
;
width
:
fit-content
;
margin
:
auto
;
background
:
hsla
(
0
,
0%
,
100%
,
0
.1
);
padding
:
0
1
.25em
;
font-size
:
13px
;
line-height
:
28px
;
border-radius
:
14px
;
}
src/ui/NewWaitRoom/index.tsx
View file @
11afd028
import
{
CheckCircleFilled
}
from
"
@ant-design/icons
"
;
import
{
C
aretRightOutlined
,
C
heckCircleFilled
}
from
"
@ant-design/icons
"
;
import
{
Avatar
,
Button
,
ConfigProvider
,
Skeleton
,
Space
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
{
useState
}
from
"
react
"
;
...
...
@@ -54,6 +54,7 @@ export const Component: React.FC = () => {
<
Chat
/>
</
div
>
<
div
className=
{
styles
.
main
}
>
{
/* <div className={styles["room-name"]}>Timel 的房间</div> */
}
<
Space
>
<
Select
title=
"卡组"
...
...
@@ -67,11 +68,9 @@ export const Component: React.FC = () => {
{
value
:
"
disabled
"
,
label
:
"
Disabled
"
,
disabled
:
true
},
]
}
/>
<
div
className=
{
styles
.
watch
}
>
<
span
className=
{
styles
[
"
btn-watch
"
]
}
>
<
IconFont
type=
"icon-record"
size=
{
18
}
/>
加入观战
</
span
>
<
div
className=
{
styles
[
"
btn-large
"
]
}
>
<
IconFont
type=
"icon-record"
size=
{
18
}
/>
加入观战
<
Avatar
.
Group
className=
{
styles
[
"
avatars-watch
"
]
}
>
<
Avatar
src=
"https://xsgames.co/randomusers/avatar.php?g=pixel&key=1"
...
...
@@ -83,6 +82,10 @@ export const Component: React.FC = () => {
<
Avatar
style=
{
{
backgroundColor
:
"
#87d068
"
}
}
size=
"small"
/>
</
Avatar
.
Group
>
</
div
>
<
div
className=
{
styles
[
"
btn-large
"
]
}
>
<
IconFont
type=
"icon-play"
size=
{
12
}
/>
开始游戏
</
div
>
</
Space
>
<
div
className=
{
styles
[
"
both-side-container
"
]
}
>
<
div
className=
{
classNames
(
styles
[
"
side-box
"
],
styles
.
me
)
}
>
...
...
src/ui/Shared/IconFont/index.tsx
View file @
11afd028
import
{
createFromIconfontCN
}
from
"
@ant-design/icons
"
;
const
_IconFont
=
createFromIconfontCN
({
scriptUrl
:
[
"
//at.alicdn.com/t/c/font_4188978_
x6rqg2kz3fa
.js
"
],
scriptUrl
:
[
"
//at.alicdn.com/t/c/font_4188978_
25l7e0zb6xo
.js
"
],
});
export
const
IconFont
:
React
.
FC
<
{
...
...
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