element-hq / hydrogen-web

Lightweight matrix client with legacy and mobile browser support
Apache License 2.0
630 stars 123 forks source link

"Today" banner blocks current page of chat unnecessarily. Hide it when not scrolling through history. #999

Open BurnyBoi opened 1 year ago

BurnyBoi commented 1 year ago

Describe the bug A banner displaying "Today" always shows over the timeline when it's already obvious the current page of messages are from today

To Reproduce Steps to reproduce the behavior: 1.Open a room where more than a page-worth of events happened today.

Expected behavior Chat should display with nothing in the way (unless all the messages on the bottom page of the timeline are from before Today, in which case it might make sense to show the "Yesterday" and earlier banners until a page worth of messages from today are sent)

Screenshots image

Smartphone (please complete the following information):

Additional context When I'm at the bottom of the timeline viewing the latest messages, the "Today" banner shouldn't be blocking the chat consistently. I understand the benefit when scrolling up through history since it shows the passage of days, but otherwise hide it.

anzal1 commented 1 year ago

can you assign this to me @BurnyBoi

BurnyBoi commented 1 year ago

@anzal1 Doesn't look like I have permission to edit assignees so maybe a repo owner can assist?