playground tweak

This commit is contained in:
Will McGugan
2025-06-19 15:21:56 +01:00
parent 51e00c7742
commit 8f85ece761

View File

@@ -70,12 +70,12 @@ class MarkupPlayground(App):
]
variables: reactive[dict[str, object]] = reactive({})
show_variables = reactive(False)
show_variables = reactive(True)
show_spans = reactive(False)
def compose(self) -> ComposeResult:
with containers.HorizontalGroup():
yield (editor := TextArea(id="editor"))
yield (editor := TextArea(id="editor", soft_wrap=False))
yield (variables := TextArea("", id="variables", language="json"))
editor.border_title = "Markup"
variables.border_title = "Variables (JSON)"