Skip to content

Commit 9591fb2

Browse files
committed
example(brand): Keep navbar visible
1 parent 1c2a504 commit 9591fb2

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

examples/brand/app.py

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,22 @@
125125
heights_equal=False,
126126
),
127127
),
128-
ui.nav_panel("Colors", ui.div(ui.output_ui("ui_colors"), class_="container-sm")),
128+
ui.nav_panel(
129+
"Colors",
130+
ui.fill.as_fill_item(
131+
ui.div(
132+
ui.div(ui.output_ui("ui_colors"), class_="container-sm"),
133+
class_="overflow-y-auto",
134+
)
135+
),
136+
),
129137
ui.nav_panel(
130138
"Documentation",
131-
ui.div(
132-
ui.markdown(
133-
"""
139+
ui.fill.as_fill_item(
140+
ui.div(
141+
ui.div(
142+
ui.markdown(
143+
"""
134144
_Just in case it isn't obvious, this text was written by an LLM._
135145
136146
# Component Documentation
@@ -223,14 +233,17 @@
223233
remaining flexible enough to accommodate future updates and modifications to the
224234
application interface.
225235
"""
226-
),
227-
class_="container-sm",
236+
),
237+
class_="container-sm ",
238+
),
239+
class_="overflow-y-auto",
240+
)
228241
),
229242
),
230243
ui.nav_spacer(),
231244
ui.nav_control(ui.input_dark_mode(id="color_mode")),
232245
title="brand.yml Demo",
233-
fillable=["Input Output Demo", "Widget Gallery"],
246+
fillable=True,
234247
theme=theme,
235248
)
236249

0 commit comments

Comments
 (0)