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