-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
fix(report): align table headings & columns left & right #6063
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -907,18 +907,23 @@ summary.lh-passed-audits-summary { | |
} | ||
|
||
.lh-table-column--text, | ||
.lh-table-column--url, | ||
.lh-table-column--node { | ||
text-align: left; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need to write this, or is it the default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or i guess for 'td' this'll be redundant but neccessary for the 'th's? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes th center by default I could override the default th behavior There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sg. lets add a comment of |
||
} | ||
|
||
.lh-table-column--bytes, | ||
.lh-table-column--timespanMs, | ||
.lh-table-column--ms { | ||
text-align: right; | ||
} | ||
|
||
|
||
.lh-table-column--thumbnail { | ||
width: calc(var(--image-preview-size) * 2); | ||
} | ||
|
||
.lh-table-column--url { | ||
text-align: left; | ||
min-width: 250px; | ||
white-space: nowrap; | ||
max-width: 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you write a lil script that goes over an LHR and pulls out all these itemTypes? it'll be easier to assert we've accounted for all of them. :)
you could just add in a css comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.from(new Set($$('[class*="lh-table-column--"]').map(el => el.className)))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does
.lh-table-column--code
belong in this list?In this table, the heading is centered, but the
![--code](https://user-images.githubusercontent.com/6392995/45850519-4f629f80-bceb-11e8-8ee2-1a043b38f791.png)
lh-code
is left aligned: