This commit is contained in:
Thomas Ricouard 2024-01-27 09:52:27 +01:00
parent f16f0d514b
commit 1299202bba

View file

@ -141,7 +141,8 @@ struct StatusRowActionsView: View {
case .linkOnly: case .linkOnly:
ShareLink(item: url) { ShareLink(item: url) {
action.image(dataController: statusDataController) action.image(dataController: statusDataController)
.font(.scaledBody) .font(.body)
.dynamicTypeSize(.medium)
} }
.padding(.vertical, 6) .padding(.vertical, 6)
.padding(.horizontal, 8) .padding(.horizontal, 8)
@ -159,7 +160,8 @@ struct StatusRowActionsView: View {
message: Text(viewModel.finalStatus.content.asRawText)) message: Text(viewModel.finalStatus.content.asRawText))
{ {
action.image(dataController: statusDataController) action.image(dataController: statusDataController)
.font(.scaledBody) .font(.body)
.dynamicTypeSize(.medium)
} }
.padding(.vertical, 6) .padding(.vertical, 6)
.padding(.horizontal, 8) .padding(.horizontal, 8)
@ -213,12 +215,14 @@ struct StatusRowActionsView: View {
action action
.image(dataController: statusDataController, privateBoost: privateBoost()) .image(dataController: statusDataController, privateBoost: privateBoost())
.imageScale(.medium) .imageScale(.medium)
.font(.scaledBody) .font(.body)
.fontWeight(.black) .fontWeight(.black)
.dynamicTypeSize(.medium)
} else { } else {
action action
.image(dataController: statusDataController, privateBoost: privateBoost()) .image(dataController: statusDataController, privateBoost: privateBoost())
.font(.scaledBody) .font(.body)
.dynamicTypeSize(.medium)
} }
if !isNarrow, if !isNarrow,
let count = action.count(dataController: statusDataController, let count = action.count(dataController: statusDataController,
@ -230,7 +234,8 @@ struct StatusRowActionsView: View {
.minimumScaleFactor(0.6) .minimumScaleFactor(0.6)
.contentTransition(.numericText(value: Double(count))) .contentTransition(.numericText(value: Double(count)))
.foregroundColor(Color(UIColor.secondaryLabel)) .foregroundColor(Color(UIColor.secondaryLabel))
.font(.scaledFootnote) .font(.footnote)
.dynamicTypeSize(.small)
.monospacedDigit() .monospacedDigit()
.opacity(count > 0 ? 1 : 0) .opacity(count > 0 ? 1 : 0)
} }