File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Reactions Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3
3
4
4
# Upcoming
5
5
6
- ### 🔄 Changed
6
+ ### 🐞 Fixed
7
+ - Reactions picker for large messages sometimes goes in the safe area
7
8
8
9
# [ 4.50.1] ( https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.50.1 )
9
10
_ March 14, 2024_
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
258
258
}
259
259
260
260
private var messageContainerHeight : CGFloat {
261
- let maxAllowed = screenHeight / 2
261
+ let maxAllowed = screenHeight / 2 - topSafeArea
262
262
let containerHeight = messageDisplayInfo. frame. height
263
263
return containerHeight > maxAllowed ? maxAllowed : containerHeight
264
264
}
@@ -281,7 +281,7 @@ public struct ReactionsOverlayView<Factory: ViewFactory>: View {
281
281
messageDisplayInfo. showsMessageActions ? messageActionsSize : userReactionsPopupHeight
282
282
var originY = messageDisplayInfo. frame. origin. y
283
283
let minOrigin : CGFloat = 100
284
- let maxOrigin : CGFloat = screenHeight - messageContainerHeight - bottomPopupOffset - minOrigin - bottomOffset
284
+ let maxOrigin : CGFloat = screenHeight + topSafeArea - messageContainerHeight - bottomPopupOffset - minOrigin - bottomOffset
285
285
if originY < minOrigin {
286
286
originY = minOrigin
287
287
} else if originY > maxOrigin {
You can’t perform that action at this time.
0 commit comments