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
c930132e
Commit
c930132e
authored
Dec 12, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
7fb9b20c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
YHAIMainChatViewController.swift
...s/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
+1
-1
YHAIRobotChatViewController.swift
.../AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
+2
-2
YHAIChatBannerView.swift
...s/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerView.swift
+2
-3
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
View file @
c930132e
...
@@ -427,7 +427,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
...
@@ -427,7 +427,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
return
resultHeight
return
resultHeight
}
}
return
UITableView
.
automaticDimension
return
0.0
}
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
View file @
c930132e
...
@@ -524,7 +524,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
...
@@ -524,7 +524,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
label
.
text
=
message
.
body
.
contentText
label
.
text
=
message
.
body
.
contentText
let
maxWidth
=
KScreenWidth
-
20*
2
-
16*
2
// 最大宽度限制
let
maxWidth
=
KScreenWidth
-
20*
2
-
16*
2
// 最大宽度限制
let
size
=
label
.
sizeThatFits
(
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
))
let
size
=
label
.
sizeThatFits
(
CGSize
(
width
:
maxWidth
,
height
:
.
greatestFiniteMagnitude
))
var
textHeight
=
ceil
(
size
.
height
)
let
textHeight
=
ceil
(
size
.
height
)
return
textHeight
+
10.0
*
3.0
return
textHeight
+
10.0
*
3.0
}
}
...
@@ -577,7 +577,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
...
@@ -577,7 +577,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
return
resultHeight
return
resultHeight
}
}
return
UITableView
.
automaticDimension
return
0.0
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerView.swift
View file @
c930132e
...
@@ -158,11 +158,11 @@ class YHAIChatBannerView: UIView {
...
@@ -158,11 +158,11 @@ class YHAIChatBannerView: UIView {
bgCardView
.
snp
.
makeConstraints
{
make
in
bgCardView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalTo
(
bgImgV
)
make
.
left
.
right
.
bottom
.
equalTo
(
bgImgV
)
make
.
top
.
equalTo
(
33.0
/
242.0
*
bgImgHeight
)
make
.
top
.
equalTo
(
bgImgV
)
.
offset
(
33.0
/
242.0
*
bgImgHeight
)
}
}
bgImgV
.
snp
.
makeConstraints
{
make
in
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
0
)
make
.
top
.
equalTo
(
1
0
)
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
bgImgHeight
)
make
.
height
.
equalTo
(
bgImgHeight
)
...
@@ -200,7 +200,6 @@ class YHAIChatBannerView: UIView {
...
@@ -200,7 +200,6 @@ class YHAIChatBannerView: UIView {
make
.
right
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
33.0
*
2
+
10.0
+
10.0
*
2.0
)
make
.
height
.
equalTo
(
33.0
*
2
+
10.0
+
10.0
*
2.0
)
make
.
top
.
equalTo
(
bgImgV
.
snp
.
bottom
)
.
offset
(
6
)
make
.
top
.
equalTo
(
bgImgV
.
snp
.
bottom
)
.
offset
(
6
)
make
.
bottom
.
equalTo
(
-
6
)
}
}
}
}
...
...
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