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

Allow closing room creation and room joining views on small screens #951

Merged
merged 9 commits into from
Sep 4, 2023

Conversation

psrpinto
Copy link
Contributor

@psrpinto psrpinto commented Dec 13, 2022

Fixes #903 #904 #936

When hydrogen is in "single-column" mode (i.e. small screen), entering certain views related to creating or joining a room makes it impossible for the user to exit that view.

The user could use the browser back button of course, but in situations where that is not possible (e.g. when hydrogen is being rendered in an iframe), the user will be locked in that screen. The only solution out of it is to delete local storage.

For consistency with other views, I think it would make sense to allow the user to go back using the same mechanism they use in other views, i.e. the back button on the view header.

Signed-off-by: Paulo Pinto paulo.pinto@automattic.com

Screen captures

Before After
Screenshot 2022-12-13 at 17 44 02 Screenshot 2022-12-13 at 17 44 30
Screenshot 2022-12-13 at 17 44 10 Screenshot 2022-12-13 at 17 44 38
Screenshot 2023-01-09 at 16 01 47 after

@thigg
Copy link

thigg commented Dec 20, 2022

Does this fully supersede #937 ?
Related issues #903 #904 #936?

@thigg
Copy link

thigg commented Dec 20, 2022

No it looks like #904 is not solved by this yet. Maybe add this page as well?

Anyway thanks for doing this more cleanly than i in #937 :)

@psrpinto
Copy link
Contributor Author

psrpinto commented Dec 20, 2022

Oops, I didn't realize there was already a PR for this, apologies @thigg. I'm happy to close this in favour of #937 if you think that makes sense, though I think the changes here that add the JoinRoomView, JoinRoomView_body and JoinRoomView_header classes do make sense.

If we keep this instead of #937 I'm happy to also address #904 here. For now I'm moving this to draft.

@psrpinto psrpinto marked this pull request as draft December 20, 2022 15:57
@thigg
Copy link

thigg commented Dec 21, 2022 via email

@psrpinto psrpinto marked this pull request as ready for review January 9, 2023 16:06
@psrpinto
Copy link
Contributor Author

psrpinto commented Jan 9, 2023

@thigg I've now addressed #904 here as well, and updated the PR description and screen captures accordingly.

@thigg
Copy link

thigg commented Jan 9, 2023

Very cool. I hope this will be merged for the next release!

@thigg
Copy link

thigg commented May 22, 2023

@MidhunSureshR do you think this could make it to thw next release? This is quite a showstopper in some cases.

Let us know if more needs to be done before merging.

@MidhunSureshR
Copy link
Member

Yes, this will surely be in the next release 👍

@MidhunSureshR
Copy link
Member

@psrpinto Can you sign-off on this PR so that I can merge it?

@psrpinto
Copy link
Contributor Author

Now signed-off the PR @MidhunSureshR

@thigg
Copy link

thigg commented Jun 29, 2023

Yes, this will surely be in the next release +1

@MidhunSureshR can this be in the next release? ;)

@MidhunSureshR MidhunSureshR merged commit 5a74303 into element-hq:master Sep 4, 2023
@psrpinto psrpinto deleted the close-room-screens branch September 4, 2023 10:55
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.

No back button on Create Room page
3 participants