Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0803e33d
authored
May 21, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【解决todo】AI Chat 头部模型按钮,如果模型名字过长,会把其他按钮挤出屏幕
parent
88c7dc52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
src/views/ai/chat/index.vue
+12
-11
No files found.
src/views/ai/chat/index.vue
View file @
0803e33d
...
@@ -15,19 +15,13 @@
...
@@ -15,19 +15,13 @@
</div>
</div>
<div
class=
"btns"
>
<div
class=
"btns"
>
<!-- TODO @fan:样式改下;这里我已经改成点击后,弹出了 -->
<!-- TODO @fan:样式改下;这里我已经改成点击后,弹出了 -->
<el-button
type=
"primary
"
@
click=
"openChatConversationUpdateForm"
>
<el-button
type=
"primary"
bg
text=
"plain"
size=
"small
"
@
click=
"openChatConversationUpdateForm"
>
<span
v-html=
"activeConversation?.modelName"
></span>
<span
v-html=
"activeConversation?.modelName"
></span>
<Icon
icon=
"ep:setting"
style=
"margin-left: 10px"
/>
<Icon
icon=
"ep:setting"
style=
"margin-left: 10px"
/>
</el-button>
</el-button>
<el-button>
<el-button
size=
"small"
:icon=
"User"
class=
"btn"
/>
<Icon
icon=
"ep:user"
/>
<el-button
size=
"small"
:icon=
"Download"
class=
"btn"
/>
</el-button>
<el-button
size=
"small"
:icon=
"Top"
class=
"btn"
@
click=
"handlerGoTop"
/>
<el-button>
<Icon
icon=
"ep:download"
/>
</el-button>
<el-button
@
click=
"handlerGoTop"
>
<Icon
icon=
"ep:arrow-up"
/>
</el-button>
</div>
</div>
</el-header>
</el-header>
...
@@ -99,6 +93,7 @@ import {ChatMessageApi, ChatMessageVO} from '@/api/ai/chat/message'
...
@@ -99,6 +93,7 @@ import {ChatMessageApi, ChatMessageVO} from '@/api/ai/chat/message'
import
{
ChatConversationApi
,
ChatConversationVO
}
from
'@/api/ai/chat/conversation'
import
{
ChatConversationApi
,
ChatConversationVO
}
from
'@/api/ai/chat/conversation'
import
{
useClipboard
}
from
'@vueuse/core'
import
{
useClipboard
}
from
'@vueuse/core'
import
ChatConversationUpdateForm
from
"@/views/ai/chat/components/ChatConversationUpdateForm.vue"
;
import
ChatConversationUpdateForm
from
"@/views/ai/chat/components/ChatConversationUpdateForm.vue"
;
import
{
Download
,
Top
,
User
}
from
"@element-plus/icons-vue"
;
const
route
=
useRoute
()
// 路由
const
route
=
useRoute
()
// 路由
const
message
=
useMessage
()
// 消息弹窗
const
message
=
useMessage
()
// 消息弹窗
...
@@ -606,7 +601,13 @@ onMounted(async () => {
...
@@ -606,7 +601,13 @@ onMounted(async () => {
.btns
{
.btns
{
display
:
flex
;
display
:
flex
;
width
:
300px
;
width
:
300px
;
justify-content
:
space-between
;
flex-direction
:
row
;
justify-content
:
flex-end
;
//
justify-content
:
space-between
;
.btn
{
padding
:
10px
;
}
}
}
}
}
}
}
...
...
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