Skip to content

Commit

Permalink
indent on project table habitat categories
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Nov 22, 2024
1 parent d9675e7 commit 39e07af
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion R/funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,19 @@ tab_fun <- function(dat, yrrng, fntsz = 14, family = NULL, rowgrp = c('Primary',
tab <- reactable(
totab,
columns = list(
rowgrp = colDef(name = 'Habitat', minWidth = habmin, maxWidth = habmin, align = 'left', class = 'sticky left-col-1-bord', headerClass = 'sticky left-col-1-bord', footerClass = 'sticky left-col-1-bord'),
rowgrp = colDef(
name = 'Habitat',
minWidth = habmin,
maxWidth = habmin,
align = 'left',
style = function(value, index) {
if (!index %in% bld) {
list(paddingLeft = "15px", fontSize = fntsz, fontFamily = family)
} else {
list(fontWeight = "bold", fontSize = fntsz, fontFamily = family)
}
}
),
tot = colDef(name = 'Total projects', minWidth = 70, maxWidth = 70)
),
defaultColDef = colDef(
Expand Down
2 changes: 1 addition & 1 deletion docs/summaries.html
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ <h3 class="anchored" data-anchor-id="total-2024-projects">Total 2024 projects</h
});
</script>
</div> <!-- /content -->
<script>var lightboxQuarto = GLightbox({"loop":false,"selector":".lightbox","descPosition":"bottom","closeEffect":"zoom","openEffect":"zoom"});
<script>var lightboxQuarto = GLightbox({"descPosition":"bottom","closeEffect":"zoom","selector":".lightbox","loop":false,"openEffect":"zoom"});
window.onload = () => {
lightboxQuarto.on('slide_before_load', (data) => {
const { slideIndex, slideNode, slideConfig, player, trigger } = data;
Expand Down
Binary file modified docs/tabs/gentab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/tabs/pritab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39e07af

Please sign in to comment.