Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a UI element to cycle through nick completions on mobile #708

Merged
merged 1 commit into from
Oct 25, 2016

Conversation

astorije
Copy link
Member

This solves #339.

This was heavily inspired by maxpoulin64@a877e46.
Clearly not a definitive solution but a good easy start to have and to improve later on.

Result

nick-cycler

@astorije astorije added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Oct 20, 2016
@astorije astorije added this to the 2.2.0 milestone Oct 20, 2016
Copy link
Member

@maxpoulin64 maxpoulin64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me regardless of my only comment!

I would have preferred this on the left to avoid accidentally tapping the submit button, but it would also probably look like shit. So I'll probably just CSS it out to my liking on my own instance.

@@ -1731,6 +1740,11 @@ button {
#viewport.menu-open {
transition: none;
}

/* Nick cycler should only be displayed on mobile */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I don't really see any harm into having it available on desktop as well. Makes it easy to discover for people that are not used to the tab mechanic.

This was heavily inspired by maxpoulin64@a877e46.
Clearly not a definitive solution but a good start to have and to improve upon.
@astorije astorije force-pushed the astorije/nick-cycle branch from 81302a5 to ddaf7ff Compare October 25, 2016 05:03
@astorije
Copy link
Member Author

@maxpoulin64, made some changes regarding your comment:

  • Rebased with master
  • Do not hide on mobile anymore
  • Consequence of this:
    • Use a click event now
    • Added a tooltip
    • Re-focus after clicking the button

Mind confirming/updating your review?

@williamboman
Copy link
Member

Loses input focus on mobile. Perhaps bypass the mobile detection and just input.focus()?

@astorije astorije merged commit e9b118e into master Oct 25, 2016
@astorije astorije deleted the astorije/nick-cycle branch October 25, 2016 22:45
@astorije
Copy link
Member Author

Loses input focus on mobile. Perhaps bypass the mobile detection and just input.focus()?

Same issue than #483.
Actual fix for that issue should fix both at the same time.

xPaw added a commit that referenced this pull request Apr 21, 2017
Reverts #708.
Fixes #869.
Fixes #1023.
eliemichel pushed a commit to eliemichel/lounge that referenced this pull request Aug 31, 2017
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Add a UI element to cycle through nick completions on mobile
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants