Bug 36559: Add sticky table headers to transport cost matrix
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 12 Apr 2024 07:38:23 +0000 (07:38 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Apr 2024 15:37:52 +0000 (17:37 +0200)
commit0cab6ee3d43a2a52a2ff09ffc10ade010064bfa8
treeab54d6ff7057fd69c7fc796871d620a02bb87e0a
parentcdb07c02c3730dd98427c930dc9f282bfeae3822
Bug 36559: Add sticky table headers to transport cost matrix

To test:
1. APPLY patch and regenerate CSS. ( yarn build )
2. Have many, many branches. To test it is good to have more branches than in a standard k-t-d.
3. Go to Admin > Transport cost matrix
4. Scroll down and to the right, the table headers should stay visible.
5. Hover over any cell, a title should appear like 'Branch A / Branch B'
6. Test in Chrome and Firefox.

This uses position: sticky which has recently gained more widespread browser support:
https://caniuse.com/?search=sticky

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt