maxfordham / ipyautoui

create ipywidgets user input form pydantic model or jsonschema
https://maxfordham.github.io/ipyautoui/
42 stars 4 forks source link

🐛 Indenting not consistent #301

Closed ollyhensby closed 6 months ago

ollyhensby commented 6 months ago

Describe the bug See below where I have created the Test schema:

import typing as ty
from ipyautoui import AutoUi

class Test(BaseModel):
    string: str
    integer: ty.Optional[int]
    auto_array: ty.Optional[list[str]]
    auto_object: NestedObject

ui = AutoUi(Test)
display(ui)

and the widget indenting is not consistent for nested widgets:

image

We see Auto Array is not indented when it should be, and the widgets within NestedObject are not indented.