Add overlay / border on media previews

This commit is contained in:
Thomas Ricouard 2023-07-17 19:18:19 +02:00
parent d41eca867b
commit c0b34d352b

View file

@ -166,6 +166,10 @@ public struct StatusRowMediaPreviewView: View {
.frame(width: newSize.width, height: newSize.height)
.clipped()
.cornerRadius(4)
.overlay(
RoundedRectangle(cornerRadius: 4)
.stroke(.gray.opacity(0.35), lineWidth: 1)
)
} else {
RoundedRectangle(cornerRadius: 4)
.fill(Color.gray)
@ -224,6 +228,10 @@ public struct StatusRowMediaPreviewView: View {
.frame(maxHeight: imageMaxHeight)
.clipped()
.cornerRadius(4)
.overlay(
RoundedRectangle(cornerRadius: 4)
.stroke(.gray.opacity(0.35), lineWidth: 1)
)
} else if state.isLoading {
RoundedRectangle(cornerRadius: 4)
.fill(Color.gray)