Skip to content

Commit

Permalink
scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Jul 31, 2024
1 parent 60003fc commit 1f37427
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ website:
text: "Events"
- about.qmd


format:
html:
theme:
Expand Down
10 changes: 9 additions & 1 deletion cards.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cards <- read_csv(here('data/cards.csv'),

```{r}
cards |>
gt() |>
gt(id = 'cards') |>
text_transform(
locations = cells_body(rows = 1),
fn = function(x) if (!is.na(x)) web_image(x) else ''
Expand All @@ -35,6 +35,14 @@ cards |>
use_compact_mode = TRUE,
use_highlight = TRUE,
page_size_default = 51
) |>
opt_css(
css = '
#cards .gt_stub {
position: sticky;
left: 0;
}
'
)
```

Expand Down

0 comments on commit 1f37427

Please sign in to comment.