mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-25 00:20:34 +00:00
fix corner radius
This commit is contained in:
parent
a04557752a
commit
d727802eb9
|
@ -132,11 +132,11 @@ private struct MediaPreview: View {
|
||||||
.frame(width: displayData.isLandscape ? imageMaxHeight * 1.2 : imageMaxHeight / 1.5,
|
.frame(width: displayData.isLandscape ? imageMaxHeight * 1.2 : imageMaxHeight / 1.5,
|
||||||
height: imageMaxHeight)
|
height: imageMaxHeight)
|
||||||
.overlay(
|
.overlay(
|
||||||
RoundedRectangle(cornerRadius: 4)
|
RoundedRectangle(cornerRadius: 10)
|
||||||
.stroke(.gray.opacity(0.35), lineWidth: 1)
|
.stroke(.gray.opacity(0.35), lineWidth: 1)
|
||||||
)
|
)
|
||||||
} else if state.isLoading {
|
} else if state.isLoading {
|
||||||
RoundedRectangle(cornerRadius: 4)
|
RoundedRectangle(cornerRadius: 10)
|
||||||
.fill(Color.gray)
|
.fill(Color.gray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ private struct MediaPreview: View {
|
||||||
.frame(width: displayData.isLandscape ? imageMaxHeight * 1.2 : imageMaxHeight / 1.5,
|
.frame(width: displayData.isLandscape ? imageMaxHeight * 1.2 : imageMaxHeight / 1.5,
|
||||||
height: imageMaxHeight)
|
height: imageMaxHeight)
|
||||||
.clipped()
|
.clipped()
|
||||||
.cornerRadius(4)
|
.cornerRadius(10)
|
||||||
// #965: do not create overlapping tappable areas, when multiple images are shown
|
// #965: do not create overlapping tappable areas, when multiple images are shown
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.accessibilityElement(children: .ignore)
|
.accessibilityElement(children: .ignore)
|
||||||
|
@ -409,7 +409,6 @@ private struct FeaturedImagePreView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if let url = attachment.url {
|
if let url = attachment.url {
|
||||||
_Layout(originalWidth: originalWidth, originalHeight: originalHeight, maxSize: maxSize) {
|
_Layout(originalWidth: originalWidth, originalHeight: originalHeight, maxSize: maxSize) {
|
||||||
// RoundedRectangle(cornerRadius: 10).fill(Color.gray)
|
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
RoundedRectangle(cornerRadius: 10).fill(Color.gray)
|
RoundedRectangle(cornerRadius: 10).fill(Color.gray)
|
||||||
|
|
Loading…
Reference in a new issue