Skip to content

Comparison page table tweaks and fixes #1254

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

Merged
merged 3 commits into from
Mar 28, 2022
Merged

Conversation

rylev
Copy link
Member

@rylev rylev commented Mar 28, 2022

This fixes two issues in the comparison page:

  • The headings for the table weren't centered but the data was. It looks off IMO
  • The labels for the raw data columns were not rendering correctly.

Before

image

After

image

@rylev rylev requested a review from Kobzol March 28, 2022 12:44
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Great, looks much better :) The wrong label was my bad from a previous PR, thanks for the fix.
Maybe I would also remove word-wrap: break-word; from the <th> element to avoid this:
image
But it's not a big deal.

I suppose that we should merge the Vue3 changes asap to avoid hoarding conflicts in the UI.

@rylev rylev merged commit b95787f into rust-lang:master Mar 28, 2022
@lqd
Copy link
Member

lqd commented Mar 30, 2022

We should likely right-align all numbers instead of centering, as it makes scanning and comparisons between rows harder, especially without thousand-separators.

@Kobzol
Copy link
Contributor

Kobzol commented Mar 30, 2022

This is how it would look with right align:
image

It's probably a good idea to do this for the numeric columns indeed.

@rylev rylev deleted the comparison-tweaks branch March 30, 2022 09:45
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.

3 participants