Skip to content

Conversation

cpsievert
Copy link
Collaborator

This PR does 3 things:

  1. Fixes an issue with ui.output_markdown_stream()'s height/width not being respected due to <shiny-markdown-stream> being display:inline; by default.
  2. Changes the default width to min(680px, 100%). This matches the default of ui.chat_ui() and is intended to prevent the content from becoming too wide.
  3. Adds margin: 0 auto to also match ui.chat_ui()'s behavior of horizontally centering itself in its parent.

@cpsievert cpsievert requested a review from gadenbuie March 27, 2025 18:33
@cpsievert cpsievert added this to the Next Release milestone Mar 27, 2025
@cpsievert cpsievert force-pushed the fix-markdown-stream-sizing branch from c00e8d7 to c6a9011 Compare March 27, 2025 18:40
@cpsievert cpsievert merged commit 29a1c66 into main Mar 27, 2025
53 of 54 checks passed
@cpsievert cpsievert deleted the fix-markdown-stream-sizing branch March 27, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants