-
Notifications
You must be signed in to change notification settings - Fork 255
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
Update gallery view styling/layout #2359
Conversation
6e68757
to
7030772
Compare
Codecov Report
@@ Coverage Diff @@
## master #2359 +/- ##
=======================================
Coverage 95.92% 95.92%
=======================================
Files 98 98
Lines 1275 1275
=======================================
Hits 1223 1223
Misses 52 52
Continue to review full report at Codecov.
|
Nice. I know the PR is still @jvine What do you think? The current line-height matches the Caption specs in #2093 but I think in this context using a headline line-height (e.g., |
Yeah, in an earlier pairing session the line-height of the captions was called out as needing some tweaking. Happy to change it (and the related heights) as needed. |
7030772
to
a8a46d3
Compare
I set the line-height for the caption to be Also, the original ticket says something about adding a word break, but wasn't sure exactly what we wanted there. Is there a specific word break strategy that you all have in mind? |
Okay, so should the fixed height be Forgive my ignorance 😬 |
That seems to work, so I think so... |
Also @jkeck, about this question:
I think @aeschylus wrote that and I'm not sure what he had in mind specifically, but I'm not sure we need to specify anything. The default seems to be what we want. The main alternative would be to add |
a8a46d3
to
628dfdf
Compare
Agreed, I played w/ some of the various options, and none of them seemed to be better than the default. |
Hmm, the captions look good but now the rows seem to have way too much whitespace between them. The whitespace increases as the browser width increases (or hits different breakpoints, I think): Seems like the row height should be static across breakpoints, since the image height and caption height is fixed? |
Okay, so what height would you like me to set then? The height stays fixed for me as I resize my screen, so I'm not able to really reproduce this to know what to change. |
Wait, I just adjusted it again to play with the height and it snapped back to how it was before, where the height is static and doesn't change with the breakpoints. So I guess what I was looking at was not accurate. So I don't think any change is needed, sorry. |
I guess it's important to test on more than one fixture! I used NGA and didn't see any difference with |
54a2619
to
ca77267
Compare
- Removed scale transform - Adds transparent border to highlighting doesn't cause jumps. - Makes images a fixed height - Fits the thumbnail + caption container around the content using width: min-content - Uses flex-box for the gallery items for better x-browser compatibility
…re-css multi-line caption truncation.
ca77267
to
2529b95
Compare
Closes #2312
Chrome (before)
Chrome (after)
Firefox (before)
Firefox (after)
Note: Firefox does not support
display: box
yet, so the text is truncated w/o an ellipsisSafari (before)
Safari (after)