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
changing .constraints-container to display:flex has possibly undesirable side-effects #2552
Comments
jrochkind
added a commit
to sciencehistory/scihist_digicoll
that referenced
this issue
Nov 23, 2021
… display:block We had written some custom CSS for display:block that doesn't work when BL 7.20.0 changes to display:flex. The display:flex also causes some other display we find undesirable. projectblacklight/blacklight#2552 We'll just stick with display:block at least for now, although diverging from Blacklight CSS further increases possible maintenance risk. Ref #1478
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#2469 changes the
.constraints-container
todisplay: flex
in order to improve pixel alignment.But for long lines, it can change the layout in other ways that may be undesirable.
After #2469, with
display:flex
, a stock BL 7.21.2 app:Manually changing
.constraints-container
back todisplay:block
Some issues with lack of spacing between the line when it wraps, but a lot closer to desirable I think?
solution?
I wonder if the
display: flex
should be reverted, and another solution found to the pixel alignment? Alternately, I guess there might be a way to add more CSS to make it wrap better even under display:flex (maybe also need to add aflex-wrap: wrap
,white-space: no-wrap
, and possibly other flex alignment properties?), but just want to make sure we're not adding workarounds on top of workarounds in increasingly hairy ways (I don't personally understand the original issue in #2469 or whydisplay:flex
solved it).Any thoughts @cbeer?
The text was updated successfully, but these errors were encountered: