Skip to content

Commit a7fa5fb

Browse files
martinmitrevskiStream-SDK-BotStream Botnuno-vieira
authored
UI Fixes in the media viewer (#1395)
* UI Fixes in the media viewer * [CI] Snapshots (#1396) Co-authored-by: Stream Bot <ci@getstream.io> --------- Co-authored-by: Stream SDK Bot <60655709+Stream-SDK-Bot@users.noreply.github.com> Co-authored-by: Stream Bot <ci@getstream.io> Co-authored-by: Nuno Vieira <nuno.fcvieira93@gmail.com>
1 parent e8a21f7 commit a7fa5fb

18 files changed

Lines changed: 5 additions & 2 deletions

β€ŽSources/StreamChatSwiftUI/ChatChannel/ChannelInfo/MediaAttachmentsView.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public struct MediaAttachmentsView<Factory: ViewFactory>: View {
6565
/// View displaying a grid of media attachments using an adaptive column layout.
6666
struct MediaAttachmentsGridView<Factory: ViewFactory>: View {
6767
@Injected(\.tokens) private var tokens
68+
@Injected(\.colors) private var colors
6869

6970
let factory: Factory
7071
let attachments: [MediaAttachment]
@@ -148,7 +149,7 @@ struct MediaAttachmentsGridView<Factory: ViewFactory>: View {
148149
)
149150
.overlay(
150151
Circle()
151-
.stroke(Color.white, lineWidth: 1)
152+
.stroke(colors.borderCoreInverse.toColor, lineWidth: 2)
152153
)
153154
.padding(.all, 8)
154155
}

β€ŽSources/StreamChatSwiftUI/ChatMessageList/Gallery/MediaViewer.swiftβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public struct MediaViewer<Factory: ViewFactory>: View {
141141
}
142142
}
143143
.padding(.all, tokens.spacingXl)
144+
.frame(height: 72)
144145
}
145146
.sheet(isPresented: $gridShown) {
146147
GridMediaView(

β€ŽSources/StreamChatSwiftUI/ViewFactory/DefaultViewFactory.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ extension ViewFactory {
206206
UserAvatar(
207207
user: options.user,
208208
size: options.size,
209-
indicator: options.showsIndicator ? (options.user.isOnline ? .online : .offline) : .none
209+
indicator: options.showsIndicator ? (options.user.isOnline ? .online : .offline) : .none,
210+
showsBorder: options.showsBorder
210211
)
211212
}
212213

Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
Β (0)