fix content sizes
This commit is contained in:
@@ -126,12 +126,11 @@ struct OrdersView: View {
|
|||||||
.font(AppTypography.heading3)
|
.font(AppTypography.heading3)
|
||||||
.foregroundStyle(AppColors.textMuted)
|
.foregroundStyle(AppColors.textMuted)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.minimumScaleFactor(0.01)
|
.minimumScaleFactor(0.5)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.layoutPriority(2)
|
.layoutPriority(0)
|
||||||
|
|
||||||
Spacer()
|
Spacer(minLength: 8)
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
if status.isInProgress {
|
if status.isInProgress {
|
||||||
@@ -150,15 +149,18 @@ struct OrdersView: View {
|
|||||||
Text(status.isInProgress ? "Acompanhar" : "Pedir Novamente")
|
Text(status.isInProgress ? "Acompanhar" : "Pedir Novamente")
|
||||||
.font(AppTypography.heading3)
|
.font(AppTypography.heading3)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
.minimumScaleFactor(0.5)
|
||||||
}
|
}
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
//.frame(minWidth: status.isInProgress ? 136 : 184)
|
||||||
.foregroundStyle(status.actionForeground)
|
.foregroundStyle(status.actionForeground)
|
||||||
.padding(.horizontal, 16)
|
.padding(.horizontal, 14)
|
||||||
.padding(.vertical, 11)
|
.padding(.vertical, 11)
|
||||||
.background(status.actionBackground)
|
.background(status.actionBackground)
|
||||||
.clipShape(Capsule())
|
.clipShape(Capsule())
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
|
.layoutPriority(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(18)
|
.padding(18)
|
||||||
|
|||||||
Reference in New Issue
Block a user