-
Notifications
You must be signed in to change notification settings - Fork 680
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
Cleanup chat/userlist to use flexbox, fix a couple of bugs #2150
Conversation
Yes! I confirm it's fixed with this PR, switching to "Bug" label. |
Why? I'm not sure I'm in favor of that. Among other things, this means channel list is animated, but user list isn't (channel list animation when clicking the menu button is nice because it mimics the movement the channel list does when swiping it open). |
I really think the animation just gets in the way here, it doesn't add anything. It also looks somewhat disconnected as the chat itself is not animated (we discussed this before, we don't animate it due to reflowing and keeping the scroll position, and importantly performance). As for the channel list, the current problem I have with it is that it's implemented in a different way (can't even hide it on desktop!). I also want to look into making network and user list into "overlays" on mobile view, so that it doesn't push the chat around, and there I can look into animating it. |
Okay I went ahead and implemented userlist as an overlay on mobile.
Can you tell me if you prefer this implementation, and if the userlist scrolling still works on iOS. |
This looks pretty good, and works quite well. I think I like the overlay, the chat moving was always a bit odd on mobile. One thing I've noticed is that on mobile, if the number of users is low, and it doesn't overflow the screen, then the sidebar just stops at the end of the names. Other than that, seems good in my testing. |
@McInkay fixed. |
Yes, this is a great compromise (I also agree that overlay on mobile was a must 👏) and I confirm it still works fine on iOS 🎉 Great stuff, and thanks for being open to alternatives :) I'ma review fully now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty awesome stuff!
Code is actually rather hard to review because it solves many things and touches many places, but quick test showed it works well.
We have a lot of time before stable v3 to check any actual issues, so 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work well. I also haven't looked through every single piece of code in this one, because that would be silly, really.
scrollIntoView(false)
.sidebar .users
to.userlist
to reduce confusion