Fix rendering of the rocket ship

This commit is contained in:
Thomas Ricouard 2023-03-04 07:13:38 +01:00
parent f5b44de317
commit b6b3c30931

View file

@ -37,7 +37,7 @@ struct StatusRowActionsView: View {
if dataController.isReblogged { if dataController.isReblogged {
return Image("Rocket.Fill") return Image("Rocket.Fill")
} else { } else {
return Image(systemName: "lock.rotation") return Image(systemName: "lock.rotation")
} }
} }
return Image(dataController.isReblogged ? "Rocket.Fill" : "Rocket") return Image(dataController.isReblogged ? "Rocket.Fill" : "Rocket")
@ -121,7 +121,16 @@ struct StatusRowActionsView: View {
Button { Button {
handleAction(action: action) handleAction(action: action)
} label: { } label: {
action.image(dataController: statusDataController, privateBoost: privateBoost()) if action == .boost {
action
.image(dataController: statusDataController, privateBoost: privateBoost())
.imageScale(.medium)
.font(.body)
.fontWeight(.black)
} else {
action
.image(dataController: statusDataController, privateBoost: privateBoost())
}
} }
.buttonStyle( .buttonStyle(
.statusAction( .statusAction(