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

feat(compose): More space on mobile devices #4282

Merged
merged 6 commits into from Jul 20, 2017
Merged

feat(compose): More space on mobile devices #4282

merged 6 commits into from Jul 20, 2017

Conversation

sorin-davidoi
Copy link
Contributor

@sorin-davidoi sorin-davidoi commented Jul 20, 2017

Writing toots on mobile devices is a sub par experience due to the lack of space in the compose column - when the virtual keyboard covers the screen you don't see what you are typing and have to scroll to tap any of the buttons. This PR hides the tabs and search bar if the compose area is focused.

I would prefer to hide the navigation bar (avatar, username, edit profile) as well, but I don't really know where to place the "close" button then - it would be too close to the emoji picker. react-motion is not used because that could mean we have to connect more components to the state (plus we need media queries). We could probably improve the performance of the animation, but I don't really know how - changing margin-top is pretty computationally expensive since it triggers re-layout.

This also raises the problem of auto focusing the textarea, which implies that switching to the compose column automatically triggers the hiding of the two bars.

Before

After

Animation

@sorin-davidoi
Copy link
Contributor Author

New animation - with a compact navigation bar - might be a bit too much?

@Gargron
Copy link
Member

Gargron commented Jul 20, 2017

@sorin-davidoi not too much but definitely too slowly

@sorin-davidoi
Copy link
Contributor Author

The recording distorted it a bit, it is faster. But we can definitely tweak it.

@sorin-davidoi
Copy link
Contributor Author

Tested on:

  • Chrome, Firefox, Epiphany (Safari-like) on Linux
  • Chrome on Android
  • Edge 15

If someone could see how this looks on iOS that would be great.

@Gargron Gargron merged commit c1bc5e1 into mastodon:master Jul 20, 2017
@sorin-davidoi sorin-davidoi deleted the compose-mobile branch July 21, 2017 07:10
@ThisIsMissEm
Copy link
Contributor

ThisIsMissEm commented Apr 21, 2018

I think this PR has introduced a regression (without knowing it), whereby there is now no close button on compose.

(rather, I think it was perhaps broken by another code change at some point)

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.

None yet

3 participants