Skip to content

Commit

Permalink
right align header in FTE table
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaynes committed Sep 27, 2024
1 parent e0d4591 commit c7e615a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/ext/custom_tbls.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ font-size: 100%;
font-weight: bold !important;
font-family: Arial;
text-transform: inherit;
text-align: left !important;
text-align: left ;
border-left-style: none;
border-left-width: 1px;
border-left-color: #FFFFFF;
Expand Down
4 changes: 3 additions & 1 deletion inst/ext/template.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ params$fte$costs |>
Cost = cost) |>
mutate(Cost = format(Cost, big.mark = "'", nsmall = 0)) |>
rename(`Cost (CHF)` = Cost) |>
gt_fn()
gt_fn() |>
tab_style(style = cell_text(align = "right"),
locations = cells_column_labels(columns = c("FTE", `Number of years`, `Cost (CHF)`)))
```

```{r expenseslab, echo = FALSE, results='asis', eval = !is.null(params$expenses)}
Expand Down

0 comments on commit c7e615a

Please sign in to comment.