Skip to content

Commit 755fc55

Browse files
committed
Disable scrolling in code wrapper box, since the inner code container
is already `overflow-x: auto`.
1 parent 595e080 commit 755fc55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyperdiv_docs/code_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def code_example(code, code_to_execute=None):
5353
if code_to_execute is None:
5454
code_to_execute = code
5555
with hd.hbox(wrap="wrap", border="1px solid neutral-50", border_radius="large"):
56-
with hd.box(horizontal_scroll=True, grow=1, basis=0, min_width=18):
56+
with hd.box(horizontal_scroll=False, grow=1, basis=0, min_width=18):
5757
hd.code(code, height="100%")
5858
with hd.box(grow=1, basis=0, min_width=18):
5959
with hd.box(padding=1, gap=1):

0 commit comments

Comments
 (0)