Always show buttons on focus status (#1015)

I think it's helpful to have the buttons and their numeric badges visible when showing a status detail view for the focused status, even if the user has opted to hide them in timeline display settings.

Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
This commit is contained in:
Daniel Dickison 2023-02-22 10:00:29 -08:00 committed by GitHub
parent 0831d64865
commit bdf5d3c783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ public struct StatusRowView: View {
.accessibilityAction {
viewModel.navigateToDetail()
}
if viewModel.showActions, theme.statusActionsDisplay != .none, !isInCaptureMode {
if viewModel.showActions, (viewModel.isFocused || theme.statusActionsDisplay != .none), !isInCaptureMode {
StatusRowActionsView(viewModel: viewModel)
.padding(.top, 8)
.tint(viewModel.isFocused ? theme.tintColor : .gray)

View file

@ -37,7 +37,7 @@ struct StatusRowActionsView: View {
}
func count(viewModel: StatusRowViewModel, theme: Theme) -> Int? {
if theme.statusActionsDisplay == .discret {
if theme.statusActionsDisplay == .discret && !viewModel.isFocused {
return nil
}
switch self {