Skip to content

Commit f79a265

Browse files
authored
Merge pull request #858 from Adamant-im/trello.com/c/x0o1aqih
[trello.com/c/x0o1aqih] remove extra space for media cell with comment
2 parents e4a7415 + 099f116 commit f79a265

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Adamant/Modules/Chat/View/Subviews/ChatMedia/Content/ChatMediaContnentView.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,10 @@ extension ChatMediaContentView.Model {
278278

279279
var spaceCount: CGFloat = fileModel.isMediaFilesOnly ? .zero : 1
280280

281-
if isReply {
281+
if isReply || !comment.string.isEmpty{
282282
spaceCount += 2
283283
}
284284

285-
if !comment.string.isEmpty {
286-
spaceCount += 3
287-
}
288-
289285
return fileModel.height()
290286
+ spaceCount * verticalInsets
291287
+ replyViewDynamicHeight

0 commit comments

Comments
 (0)