Skip to content

Commit 7b1f60b

Browse files
authored
fix(MarkdownStream): width and height are now respected; set a maximum width of 680px with auto margins (#35)
* fix(MarkdownStream): width and height are now respected; set a maximum width of 680px with auto margins * roxygen * Approve new snapshots
1 parent 395d104 commit 7b1f60b

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed

R/markdown-stream.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ output_markdown_stream <- function(
4545
content = "",
4646
content_type = "markdown",
4747
auto_scroll = TRUE,
48-
width = "100%",
48+
width = "min(680px, 100%)",
4949
height = "auto"
5050
) {
5151

@@ -63,7 +63,8 @@ output_markdown_stream <- function(
6363
id = id,
6464
style = css(
6565
width = width,
66-
height = height
66+
height = height,
67+
margin = "0 auto"
6768
),
6869
content = ui[["html"]],
6970
"content-type" = content_type,

inst/lib/shiny/GIT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9b613752c110130667e17d17a7bbec5ac31a8977
1+
29a1c66250368a93dab4b15eab1fc3325600f811

inst/lib/shiny/chat/chat.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/lib/shiny/chat/chat.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)