Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[WebProfilerBundle] Hide debug toolbar in print view#38606
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fabpot commentedOct 16, 2020
Thank you@jt2k. |
jt2k commentedOct 16, 2020
Thanks,@fabpot and@stof. I see this is already merged, but I am curious about your comment,@jderusse. According tothe release page, 3.4 is maintained for bug fixes until November 2020. Are we in a window now where bug fixes targeting 3.4 are discouraged due to the proximity to November 2020? |
jderusse commentedOct 16, 2020
@jt2k yes, you're right. sorry for the confusion |
jt2k commentedOct 16, 2020
@jderusse No problem! That was a good reminder for me that 3.4 is going into security-only maintenance soon! |
The debug toolbar is intended to be hidden when printed. This was accomplished in 2.8 withthis PR. Since then, additional JavaScript code was added which results in
display: blockbeing applied directly to the toolbar element. This overrides the print style, which causes the toolbar to show up in the print view. I fixed this by adding!importantto the print CSS display rule.A few notes:
!importantbut couldn't come up with another way to make this work with the existing JavaScript code. Also,profiler.css.twigalready has some!importantstyles, so I figured this was acceptable.