-
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: clean up table styling #1726
Conversation
@@ -111,6 +111,20 @@ class ReportGenerator { | |||
} | |||
}); | |||
|
|||
Handlebars.registerHelper('kebabCase', function(str) { |
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.
would love to rebase against #1660 and add tests here
{{/each}} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each rows}} | ||
<tr> | ||
{{#each cols}} | ||
<td>{{ sanitize this}}</td> | ||
<td class="table-column table-column-{{ kebabCase (lookup ../../headingKeys @index) }}">{{ sanitize this}}</td> |
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.
don't like this, but not sure it's worth restructuring the format of rows just for class names 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.
Nice. It's useful to be able to target these. It's hard that we have a generic table, but specific data that might need to look different here/there.
} | ||
.table_list .table-column.table-column-url { | ||
text-align: left; | ||
width: 250px; |
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.
could add more here, but on smaller screen sizes the optimized images table starts getting pretty squished, min-width doesn't seem to have an impact on fixed table width
10fb615
to
ca971f8
Compare
oh thanks good catch @ebidel, fixed |
LGTM |
R: @paulirish all
Before
![image](https://cloud.githubusercontent.com/assets/2301202/22986597/f11de768-f360-11e6-8d0a-c445e6cb07c6.png)
After
![image](https://cloud.githubusercontent.com/assets/2301202/22986584/ea64c608-f360-11e6-90db-3665dc2c9e57.png)