Skip to content

Commit 326b730

Browse files
committed
Slightly more complete examples
1 parent 40382f7 commit 326b730

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

shiny/api-examples/MarkdownStream/app-core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
from shiny import App, ui
66

77
app_ui = ui.page_fluid(
8-
ui.output_markdown_stream("shiny-readme"),
8+
ui.card(
9+
ui.card_header("Shiny's README.md"),
10+
ui.output_markdown_stream("shiny-readme"),
11+
height="400px",
12+
class_="mt-3",
13+
full_screen=True,
14+
),
915
)
1016

1117

shiny/api-examples/MarkdownStream/app-express.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
from shiny.express import session, ui
66

7+
ui.page_opts(full_width=True)
8+
79
# Read in the README.md file from the py-shiny repository
810
readme = requests.get(
911
"https://raw.githubusercontent.com/posit-dev/py-shiny/refs/heads/main/README.md"
@@ -21,7 +23,7 @@ def chunk_generator():
2123

2224
md = ui.MarkdownStream("shiny-readme")
2325

24-
with ui.card(height="400px"):
26+
with ui.card(height="400px", class_="mt-3", full_screen=True):
2527
ui.card_header("Shiny README.md")
2628
md.ui()
2729

0 commit comments

Comments
 (0)