(core) Improve printing of tables, fix printing of charts, add a browser test.

Summary:
- Include column headers on each page for printing tables.
- Avoid page-breaks inside rows or cards of a card-list.
- Fix printing of charts that did not show up at all before.
- Add a browser test, not great, but somewhat functional.

Test Plan: New test, plus tested manually. Column headers work on Chrome and Firefox (not Safari).

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2636
This commit is contained in:
Dmitry S
2020-10-12 16:00:56 -04:00
parent 4d3777578e
commit 5247521cb8
5 changed files with 71 additions and 12 deletions

View File

@@ -270,3 +270,15 @@
margin-right: -6px; /* allow labels to overflow into the padding */
margin-bottom: 4px;
}
@media print {
.detail_theme_record_compact {
background-color: var(--grist-color-medium-grey) !important;
}
.detail_theme_record_compact > .g_record_detail_inner {
background-color: white !important;
}
.detail_theme_field_blocks {
background-color: var(--grist-color-medium-grey) !important;
}
}