Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21d6d2c

Browse filesBrowse files
authored
Fix Quiz options text max width (empa-scientific-it#79)
Allow long text options by setting CSS width to 'max-content'
1 parent 3d67f72 commit 21d6d2c
Copy full SHA for 21d6d2c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎tutorial/common.py

Copy file name to clipboardExpand all lines: tutorial/common.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, question: str, options: dict, correct_answer: str, hint: str
2020
options = sorted(options.items(), key=lambda x: random.random())
2121

2222
# Radio buttons with options.
23-
self.answer = ipw.RadioButtons(options=options, value=None)
23+
self.answer = ipw.RadioButtons(options=options, value=None, layout={'width': 'max-content'})
2424
self.answer.observe(self.clear_output, 'value')
2525

2626
# Help button

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.