Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
mobile-group
galaxy-iOS
Commits
0884fac0
Commit
0884fac0
authored
Dec 10, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
91244bed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
YHAIMainChatViewController.swift
...s/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
+5
-1
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
View file @
0884fac0
...
...
@@ -347,6 +347,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
0
<=
indexPath
.
row
,
indexPath
.
row
<
messages
.
count
{
let
message
=
messages
[
indexPath
.
row
]
let
msgType
=
message
.
getType
()
if
!
message
.
isTextMessage
()
{
...
...
@@ -365,7 +366,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
textHeight
=
20.0
}
if
message
.
isSelf
||
message
.
getType
()
==
.
recommendText
{
if
message
.
isSelf
||
msgType
==
.
recommendText
{
return
textHeight
+
16.0
*
2
+
16.0
}
...
...
@@ -386,6 +387,9 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
return
resultHeight
}
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
16.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