Skip to content

Commit c55cf58

Browse files
committed
Resize POSErrorExclamationMark if it doesn't fit
1 parent 819ddea commit c55cf58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

WooCommerce/Classes/POS/Presentation/Reusable Views/POSErrorExclamationMark.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ struct POSErrorExclamationMark: View {
1010

1111
var body: some View {
1212
Image(systemName: "exclamationmark.circle.fill")
13-
.font(.system(size: size))
13+
.resizable()
14+
.aspectRatio(contentMode: .fit)
15+
.frame(maxHeight: size)
16+
.layoutPriority(-1)
1417
.foregroundStyle(Color.posAlert)
1518
.accessibilityHidden(true)
1619
.renderedIf(!dynamicTypeSize.isAccessibilitySize)

0 commit comments

Comments
 (0)