Make HTML report printable and scrollable#34
Conversation
|
Printing works, but only the active tab... let me see how to print all tabs. |
|
See example out of print to pdf |
|
@BioWilko Pinging! |
|
Okay looking at this now! |
|
Thanks! I should mention that my CSS / JavaScript skills are very poor. Most of this was coded with the help of Kimi K2 chat bot. |
Hah, how do you think I made the templates in the first place! |
|
Okay this is looking good but I'm noticing some issues with the width of plots within tabs, also I'm not particularly keen on the landscape orientation but that's a more minor issue. Also the run info table is no longer within the header so it can't be seen against the background. |
|
Good catch, let me fix those issues. I'll add a radio button to switch orientation. Edit: what browser are you using? I see this issue in firefox. |
|
I've fixed the weird landscape issue. The HTML report is now back to landscape. When the print button is clicked, it switched to landscape. |
|
Some more feedback:
|
|
I'm not convinced that these reports should be printable, plotly hides a lot of sample names by default when you have a full sized run to prevent overlaps and I think it could confuse users. |
That's was a design decision to make every tab on one page. The JavaScript function modifies the DOM, which causes the changes seen after print button is triggered.
I'll try to fix these issues. To answer your question, my lab and I imagine lots of other labs print the results (in this case the html), hand write and highlight pass fail to be combined with other printed docs to form a packet that's archived. I wish they didn't, but they do. I would not be upset if you close this pull request as not relevant. |
|
Nah that does make sense, so long as the main table is what people really want and the plots are just bonus. |

Hi Sam,
Two modifications to the html run report template:
divto wrap tables so they're scrollable when the view port is small (eg on mobile devices, don't ask why someone is viewing the report on their mobile)PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).