You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When at the bottom of a feed, the FAB / compose button blocks the last item (content, actions, ...).
To Reproduce
Steps to reproduce the behavior:
Go to a short feed on a screen with FAB / compose button (ex:"Trending Posts" when on MainActivity)
Scroll down to the bottom of the feed
See that the FAB / compose button is preventing the user to completely see and act on the last item
Expected behavior
At the end of such feeds, the user can scroll a bit further down than the content, just enough to have the last item end atop the FAB / compose button.
Screenshots or video
Current
Expected
Versions
Pachli Current 2.4.0+38ba7b18
Device:
Google sdk_gphone_x86
Android version: 11
SDK level: 30
Account:
@nephilas@mastodon.social
Version: 4.3.0-nightly.2024-03-27
Affirmation
I have checked other issues for this project (open and closed) and I cannot find one that matches the problem I am reporting.
The text was updated successfully, but these errors were encountered:
The "Expected" screenshot above was created by adding paddingBottom=Xdp and clipToPadding=false to the feed's RecyclerView and is the solution I'd go for.
Preferably, I'd like to have paddingBottom="@dimen/fabContentBottomPadding" and clipToPadding added to scrollable views alongside FloatingActionButtons, so it is clearer that one is there because of the other.
But the code situation is a bit different, ex: MainActivitys FloatingActionButton is defined in activity_main.xml and the scrollable views are defined inside many fragments, like fragment_timeline.xml. So the FAB and the padding added because of it would live in different places; and not all screens that show feeds have the FAB (ex: "Posts" in TrendingActivity), but if we add padding to fragment_timeline.xml, it would appear on those screens as well, even if it would be unnecessary.
Even with those drawbacks (related code split apart and adding padding to screens that don't need it), I think this would still be a good solution. Would you agree?
If so, I could work on a PR with that. And I might need a knowing eye to point out scrollable views I might miss.
Have you looked at moving the responsibility for the FAB to each fragment that needs one? I.e., including it in the fragment's layout, not MainActivity (and similar)?
Architecturally that's probably cleaner.
If you haven't got the time to experiment with that let me know and I'll take a crack at it.
Describe the bug
When at the bottom of a feed, the FAB / compose button blocks the last item (content, actions, ...).
To Reproduce
Steps to reproduce the behavior:
MainActivity
)Expected behavior
At the end of such feeds, the user can scroll a bit further down than the content, just enough to have the last item end atop the FAB / compose button.
Screenshots or video
Versions
Affirmation
I have checked other issues for this project (open and closed) and I cannot find one that matches the problem I am reporting.
The text was updated successfully, but these errors were encountered: