Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the statistics bar in the detailed view below the button bar #4205

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

Tak
Copy link
Collaborator

@Tak Tak commented Jan 4, 2024

Rationale: In the current layout, when performing multiple interactions (e.g. fav+boost, fav+reply) on a post that hasn't been interacted with before, the statistics bar appears and pushes the buttons down, so the second tap goes to the statistics bar instead

Copy link
Collaborator

@connyduck connyduck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good idea!

  • Please move the status_reblogs and status_favourites down into their new correct position in xml.
  • Some margin changes are needed so both the buttons and the boost/ fav count are vertically centered between the dividers

@connyduck
Copy link
Collaborator

The buttons now look correct, but the boost/fav counter is still closer to the bottom than the top.
Screenshot_20240105_192151

@Tak
Copy link
Collaborator Author

Tak commented Feb 20, 2024

Finally got back to this, sorry for the delay

@connyduck connyduck merged commit 6994693 into develop Feb 20, 2024
3 checks passed
@connyduck connyduck deleted the statistics-below-buttons branch February 20, 2024 09:17
connyduck pushed a commit that referenced this pull request Feb 23, 2024
#4205 did change how the counters for the detailed posts behave and for
a good reason I believe.

However I find the changed order very confusing and not aesthetically
pleasing.

I have tried a few options, including reserving space for it but it was
confusing (when counters are not displayed there would be a danging
separator or if we show separator together with it it would be confusing
as well).

I propose we simply show the counters independent on the counts. I know
we try to de-emphasize the counters but I believe this is fine to do in
detailed view.

One disadvantage is that we need translators to update the translations.

Additionally I've done two spacing changes: I removed a separator
between the counters and the buttons, removed padding around the
counters and increased the space between the counters and the buttons
instead. I believe it's better to use space than separators. This also
makes the space above/below the media/counters separator balanced.

In the second commit I've also made the metadata/counters separators
thinner, I think it looks better.

here's the combined version:


![proposal_final](https://github.com/tuskyapp/Tusky/assets/3099142/ea9d4c0c-fe6a-4f2e-8427-673b2a833e6b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants