diff --git a/R/facets.R b/R/facets.R index 27d2ca0..6f1cb41 100644 --- a/R/facets.R +++ b/R/facets.R @@ -53,6 +53,7 @@ build_grid <- function(content, nrow = NULL, ncol = NULL, col_gap = "0px", row_g } } htmltools::tags$div( + class = "apexcharter-facet-container", style = "display: grid;", style = sprintf("grid-template-columns: repeat(%s, 1fr);", ncol), style = sprintf("grid-template-rows: repeat(%s, 1fr);", nrow), diff --git a/inst/htmlwidgets/apexcharter.css b/inst/htmlwidgets/apexcharter.css index 3c31d52..7eb29b2 100644 --- a/inst/htmlwidgets/apexcharter.css +++ b/inst/htmlwidgets/apexcharter.css @@ -6,3 +6,6 @@ box-shadow: 0 1px 28px -12px #3B4252; } +.apexcharter-facet-container > div { + min-width: 0; +}