fix content sizes

This commit is contained in:
Daniel Arantes Loverde
2026-03-05 11:09:47 -03:00
parent a98089b48d
commit 30f0327a53

View File

@@ -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)