Skip to content

Commit 9f8cff8

Browse files
fixed paddings and margins
1 parent 52e38b9 commit 9f8cff8

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChannelHeader/ChatChannelHeaderViewModifier.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public struct DefaultChatChannelHeader: ToolbarContent {
4545
showOnlineIndicator: onlineIndicatorShown,
4646
size: CGSize(width: 36, height: 36)
4747
)
48+
.offset(x: 8)
4849
}
4950
}
5051

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageListView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ struct MessageListView<Factory: ViewFactory>: View, KeyboardReadable {
7979
)
8080
.padding(.horizontal, 8)
8181
.padding(.bottom, showsAllData(for: message) ? 8 : 2)
82+
.padding(.top, message == messages.last ? 8 : 0)
8283
.flippedUpsideDown()
8384
.onAppear {
8485
let index = messages.firstIndex { msg in

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public struct ChatChannelListView<Factory: ViewFactory>: View {
9292
}
9393
}
9494
.modifier(viewFactory.makeChannelListHeaderViewModifier(title: title))
95-
.edgesIgnoringSafeArea(.bottom)
9695
.navigationBarTitleDisplayMode(viewFactory.navigationBarDisplayMode())
9796
.blur(radius: (viewModel.customAlertShown || viewModel.alertShown) ? 6 : 0)
9897
}

0 commit comments

Comments
 (0)