Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Add some media queries to improve UI on mobile#3991

Closed
daleharvey wants to merge 1 commit into
matrix-org:developfrom
daleharvey:9814
Closed

Add some media queries to improve UI on mobile#3991
daleharvey wants to merge 1 commit into
matrix-org:developfrom
daleharvey:9814

Conversation

@daleharvey
Copy link
Copy Markdown
Contributor

@daleharvey daleharvey commented Jan 30, 2020

So there is a lot of work to do here, I wanted to put up the minimal patch that gets the UI usable on mobile and touches the least amount of things as possible so we can discuss the overall approach without too big a patch.

It looks like:

https://i.imgur.com/Z8TU0VE.png
https://i.imgur.com/gvVVlJu.png
https://i.imgur.com/jSMuqAN.png

I feel like we probably dont want to be repeating this media query so often so not sure if we want to put this all in a dedicated mobile-overrides.scss ?

@turt2live
Copy link
Copy Markdown
Member

Thanks @daleharvey! Is it possible to link this up to an issue in riot-web and get sign off?

@daleharvey
Copy link
Copy Markdown
Contributor Author

@turt2live Hey cheers, I opened a PR @ element-hq/element-web#12142 and linked this issue, anything else I should do?

@turt2live
Copy link
Copy Markdown
Member

That works too. Our contributing guidelines want sign off so we're able to accept the contribution. Just need a comment on each PR with this template filled in:

Signed-off-by: Your Name <email@example.org>

@daleharvey
Copy link
Copy Markdown
Contributor Author

Ah yeh sorry forgot about that, cheers

Signed-off-by: Dale Harvey dale@arandomurl.com

@turt2live turt2live requested a review from a team January 30, 2020 10:51
@jryans
Copy link
Copy Markdown
Collaborator

jryans commented Jan 30, 2020

Thanks for the contribution! 😄 As mentioned in few places, we're currently in crunch mode for FOSDEM prep, but we'll take a look at this next week.

@jryans jryans added the Z-Community-PR Issue is solved by a community member's PR label Feb 3, 2020
@turt2live turt2live removed the request for review from a team February 6, 2020 13:49
@jryans jryans requested a review from a team February 17, 2020 12:44
@turt2live turt2live removed the request for review from a team February 18, 2020 21:07
@jryans jryans requested a review from a team February 18, 2020 23:30
@jryans
Copy link
Copy Markdown
Collaborator

jryans commented Feb 18, 2020

To clarify for reviewers, these are ready for anyone to review. element-hq/element-web#9814 is not on the workflow board itself since this set is only an initial step.

Copy link
Copy Markdown
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks for your patience with this!

Overall, I think this looks reasonable. Let's actually try going with the current approach for the moment, with small screen customisation in each component, as it seems easier to reason about.

A few small things to tweak before merging.

}
}

@media only screen and (max-width : 480px) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please remove the space before the colon here and elsewhere. That should resolve the linting errors.


.mx_AuthBody {
width: 500px;
max-width: 500px;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hmm, for large screens at least, we don't want the width to change based on content. Could we leave this as it, and then reset width to auto and use max-width for small screens?

}

@media only screen and (max-width : 480px) {
.mx_AuthHeader {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please use 4 space indentation everywhere as well.

@TitanNano
Copy link
Copy Markdown
Contributor

@turt2live @jryans I fixed this in #4656

@turt2live turt2live closed this May 27, 2020
jryans added a commit that referenced this pull request Jun 17, 2020
 Add some media queries to improve UI on mobile (#3991)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants