Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichson committed Apr 4, 2024
1 parent 130a335 commit 3dfa227
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/f7Card.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ f7SocialCard <- function(..., image = NULL, author = NULL, date = NULL,
#' @export
f7ExpandableCard <- function(..., id = NULL, title = NULL,
subtitle = NULL, color = NULL,
image = NULL, fullBackground = FALSE) {
image = NULL, fullBackground = FALSE, height = "300px") {

cardColorCl <- if (!is.null(color)) paste0("bg-color-", color)

Expand Down Expand Up @@ -328,6 +328,7 @@ f7ExpandableCard <- function(..., id = NULL, title = NULL,
# main wrapper
shiny::tags$div(
class = "card card-expandable",
style = paste0("height: ",height),
`data-card` = paste0("#", id),
id = id,
shiny::tags$div(
Expand All @@ -345,6 +346,7 @@ f7ExpandableCard <- function(..., id = NULL, title = NULL,
} else {
shiny::tags$div(
class = cardColorCl,
#style = paste0("height: ",height),
style = "height: 300px;",
cardHeader,
closeCard
Expand Down

0 comments on commit 3dfa227

Please sign in to comment.