fixed sidebar
Compare changes
Files
2+ 10
− 8
@@ -65,7 +65,7 @@ setMethod("add_component",
@@ -65,7 +65,7 @@ setMethod("add_component",
"image" = render_image(component, width = image_width, height = image_height, image_alt_text = image_alt_text, description = image_description, ...))
@@ -114,19 +114,21 @@ render_text <- function(file, title = NULL, raw = FALSE) {
@@ -114,19 +114,21 @@ render_text <- function(file, title = NULL, raw = FALSE) {
render_image <- function(image, image_alt_text = NULL, title = NULL, raw = FALSE, width = "100%", height = "auto", description = NULL) {
content <- paste0("<img src='",image,"' alt='",image_alt_text,"' style='width:",width,"; height:",height,"'/></br>\n")