element-android icon indicating copy to clipboard operation
element-android copied to clipboard

App Layout - Toolbar shouldn't collapse with an empty list

Open germain-gg opened this issue 3 years ago • 7 comments

Steps to reproduce

  1. Make sure the home screen has a height smaller than the viewport height
  2. Scroll down

Outcome

What did you expect?

For nothing to move as there's nothing to scroll

What happened instead?

The "all chats" header collapses and that feels odd as there's nothing to scroll. I believe we should prevent header collapse behaviour when the list height is smaller than the viewport height

Your phone model

No response

Operating system version

No response

Application version and app store

No response

Homeserver

No response

Will you send logs?

No

Are you willing to provide a PR?

No

germain-gg avatar Aug 08 '22 09:08 germain-gg

reassigned to @ericdecanini, since he was implementing a toolbar and has more context about it

fedrunov avatar Aug 08 '22 10:08 fedrunov

I checked this behaviour with a few other google apps with collapsing toolbars (specifically Google Drive, and Pixel 6 Pro's native Contacts and Files apps).

The behaviour is that the toolbar only becomes non-collapsible in an empty state (0 content). If there's even one piece of content in the list, even if it only takes up a small space in the whole viewport, the toolbar becomes collapsible.

Given that it's related to empty state, I'd like to do this as part of https://github.com/vector-im/element-android/issues/6754

I'll close this issue for now

ericdecanini avatar Aug 09 '22 07:08 ericdecanini

@ericdecanini it's in done column on board but still open. What is the actual state?

fedrunov avatar Sep 12 '22 12:09 fedrunov

I've investigated this and it seems extremely difficult for the value it provides. I personally don't think it's a problem for the toolbar to be collapsible in an empty state. Happy to hear your thoughts on this @daniellekirkwood @amshakal

ericdecanini avatar Sep 15 '22 14:09 ericdecanini

Whether it's worth it for the value doesn't mean it should be in closed state if it's open... I'll move it to the correct column as it sounds like this is not actually done.

@ericdecanini I think you have a point and this is definitely not a blocker - however, we know that Design bugs tend to compound over time and lead to a bad user experience. You're right to tag @amshakal - do you think that it's a design bug and we should fix it, or should we leave it in the backlog as an enhancement?

daniellekirkwood avatar Sep 20 '22 11:09 daniellekirkwood

It is not a blocker to release but exactly like you said, it compounds over time and leads to a bad user experience.

amshakal avatar Sep 20 '22 17:09 amshakal

Have updated the tags on the board to reflect this convo 👍

daniellekirkwood avatar Sep 21 '22 08:09 daniellekirkwood