Skip to content

Commit 466a280

Browse files
Fixed Message List layout for iPad in Slide Over mode
1 parent ea92ad7 commit 466a280

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
99
- Added a configurable separator view for new messages
1010
- Possibility to customize the cornerRadius of the `ComposerInputView`
1111

12+
### 🐞 Fixed
13+
- Message List layout for iPad in Slide Over mode
14+
1215
# [4.26.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.26.0)
1316
_January 16, 2023_
1417

DemoAppSwiftUI/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<string>armv7</string>
5757
</array>
5858
<key>UIRequiresFullScreen</key>
59-
<true/>
59+
<false/>
6060
<key>UISupportedInterfaceOrientations</key>
6161
<array>
6262
<string>UIInterfaceOrientationPortrait</string>

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageListConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public struct MessageDisplayOptions {
148148

149149
public static var defaultSpacerWidth: (CGFloat) -> (CGFloat) {
150150
{ availableWidth in
151-
if isIPad {
151+
if isIPad && availableWidth > 500 {
152152
return 2 * availableWidth / 3
153153
} else {
154154
return availableWidth / 4

0 commit comments

Comments
 (0)