Skip to content

Commit

Permalink
Adding some css styling to manage table sizing and moving scroll bars…
Browse files Browse the repository at this point in the history
… to within table. Placeholder updates to var names.
  • Loading branch information
alex-vand committed Sep 2, 2024
1 parent 744f3c0 commit 5f89067
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 18 additions & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ logo: logo.jpg
format:
html:
page-layout: full
css: styles.css
execute:
echo: false
---
Expand All @@ -20,5 +21,21 @@ This project was started as part of a R-HTA Hackathon held at the University of

```{r}
dat <- read.csv("data/data.csv")
DT::datatable(dat)
#PLACEHOLDER - WILL MOVE TO PROCESSING SCRIPTS
names(dat) <- c("Package",
"Title",
"Description",
"License",
"Authors",
"Maintainer",
"Date published (CRAN)",
"Has tests?",
"Has Vingettes?",
"# contributors",
"On CRAN?")
DT::datatable(dat,
options = list(
scrollX = TRUE,
scrollY = TRUE)
)
```
3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.dataTables_scrollBody {
max-height: 70vh; /* 70% of viewport height */
}

0 comments on commit 5f89067

Please sign in to comment.