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

Conversation

@JorikSchellekens
Copy link
Contributor

@JorikSchellekens JorikSchellekens commented Apr 7, 2020

This is a series small fixes for scaling which focus on the roomlist, the eventtiles and the settings window.

Things to check in review:

  • line heights
  • avatar sizes
  • vertical alignments
  • user and room pills
  • toggle alignments in preferences
  • read receipts

http://riots.im/adhoc/resize_mania2/

@JorikSchellekens JorikSchellekens requested a review from a team April 7, 2020 14:11
@JorikSchellekens JorikSchellekens force-pushed the joriks/font-scaling-fixes branch from f7dff52 to 0dac0cd Compare April 7, 2020 14:36
@turt2live
Copy link
Member

@JorikSchellekens is it possible to get gifs/screenshots of this in action?

@JorikSchellekens
Copy link
Contributor Author

Of course, I'll get some screenshots of it. You can also test it yourself by setting the font size in :root.

@JorikSchellekens
Copy link
Contributor Author

10px:
image
image
image
image

20px:
image
image
Just noticed the upload button there, I'll get that in another pr.

image

image

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Have reviewed up to commit 84b8499, will continue on Tuesday.

This was a hard pill to swallow

😄

height: 16px;
width: $font-16px;
height: $font-16px;
margin-right: 0.24rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure where this margin comes from ... Looking at the adhoc build, the avatar also has a border around it where it didn't before:
On ad-hoc:
image
On develop:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The previous mentions do have a border around them. I've just accidentily made them a little bigger than they should be. I'll fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The margin comes in as a result of replacing a large right padding used by the pill.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The border is now much smaller.
image

I thought the border was intentional because of the following pills on develop:
image

I can get rid of the border on the message userpills altogether if it looks better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, yeah, the pills do look a bit bigger in the auto-complete which I believe your screenshot was taking from?
It's a bit hard to see on your screenshot, but it looks like the padding-right is a bit smaller there, as in the text is more crammed against the end of the pill?

@bwindels
Copy link
Contributor

@JorikSchellekens what's the risk of breakage here at the default scaling factor? Just to know if we should merge this before or after releasing 1.6.

@JorikSchellekens JorikSchellekens force-pushed the joriks/font-scaling-fixes branch from 1ffe948 to fe51444 Compare April 21, 2020 14:40
@bwindels
Copy link
Contributor

@JorikSchellekens could you rebase the branch on top of current develop to make see if the e2e tests run?

@JorikSchellekens JorikSchellekens force-pushed the joriks/font-scaling-fixes branch from 309e6fc to e7111b8 Compare April 23, 2020 09:30
@JorikSchellekens
Copy link
Contributor Author

Did the rebase. The e2e test is timing out.

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Lgtm, minus some minor questions.

Thanks for working on this, and sorry it took ages for me to finish the review.

@bwindels
Copy link
Contributor

bwindels commented Apr 23, 2020

Hmm, the screenshots in the artifacts of the e2e tests do look like there might be a real problem here:
See alice and bob. You should be able to run these locally with first yarn start on riot-web and then yarn test:e2e --windowed on react-sdk.

This was a hard pill to swallow
This fix isn't perfect. Currently the scroll view is
slightly smaller than the list of rooms. I think it has something
to do with the how the heigh is calculate in js, considering it has
some assumptions about the height of each bar and the padding. However
room items are the only things which change with respect to the root
value. Therefore the item list is actually taller than the computed
pixel value of the list converted to rems.

I'll look into it.
@JorikSchellekens JorikSchellekens force-pushed the joriks/font-scaling-fixes branch from b054d43 to 1f99e15 Compare April 27, 2020 16:11
@JorikSchellekens JorikSchellekens force-pushed the joriks/font-scaling-fixes branch from 1f99e15 to c995e2e Compare April 27, 2020 16:29
@JorikSchellekens JorikSchellekens merged commit cf05beb into matrix-org:develop Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants