Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘坚-丰林-DEV
chatGLM
Commits
6b4b2b7f
Commit
6b4b2b7f
authored
Apr 17, 2023
by
文旺-丰林-DEV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix sider style
parent
6f8b236c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
routes.ts
config/routes.ts
+1
-1
index.less
src/pages/Chat/index.less
+11
-0
index.tsx
src/pages/Chat/index.tsx
+9
-2
No files found.
config/routes.ts
View file @
6b4b2b7f
...
...
@@ -27,7 +27,7 @@
},
{
path
:
'/'
,
redirect
:
'/
welcome
'
,
redirect
:
'/
chat
'
,
},
{
component
:
'./404'
,
...
...
src/pages/Chat/index.less
View file @
6b4b2b7f
...
...
@@ -3,9 +3,20 @@
.chatContent {
background: white !important;
}
.siderMask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 13;
background: rgba(0, 0, 0, 0.45);
pointer-events: auto;
}
.siderWrapper {
background: white;
.sider {
position: fixed;
top: 0;
...
...
src/pages/Chat/index.tsx
View file @
6b4b2b7f
...
...
@@ -148,6 +148,14 @@ const Chat: React.FC = () => {
{
isMobile
&&
renderMobileHeader
()
}
<
Row
>
<
Col
className=
{
`${styles.siderWrapper}`
}
>
{
isMobile
&&
showSider
&&
(
<
div
onClick=
{
()
=>
{
setShowSider
(
false
);
}
}
className=
{
styles
.
siderMask
}
></
div
>
)
}
<
div
style=
{
{
top
:
isMobile
&&
'44px'
,
zIndex
:
isMobile
?
13
:
10
}
}
className=
{
`${styles.sider} ${showSider ? styles.siderOpen : ''}`
}
...
...
@@ -170,7 +178,7 @@ const Chat: React.FC = () => {
className=
{
styles
.
chatFooterItem
}
hidden=
{
!
access
.
roles
?.
find
((
x
)
=>
[
'管理员'
,
'admin'
].
includes
(
x
))
}
onClick=
{
()
=>
{
history
.
push
(
'/'
);
history
.
push
(
'/
welcome
'
);
}
}
>
<
Space
wrap
>
...
...
@@ -269,7 +277,6 @@ const Chat: React.FC = () => {
>
<
Item
name=
"chatInput"
>
<
Input
autoComplete=
{
false
}
required
placeholder=
"在这里输入你想知道的问题,给我几句提示,我来帮你回答"
size=
"large"
...
...
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