show image

not possible to add online images yet but at least not hide it during edit
This commit is contained in:
flukx 2024-08-17 12:41:21 +02:00
parent 3896f46817
commit 4247595977

View file

@ -355,6 +355,10 @@ def show_part_changer(ui_element: nicegui.ui.element, part: Part) -> None:
)
with ui.column() as location_column:
update_location_element(location_column)
if hasattr(part, "image"):
ui.image("/images_landscape/" + part.image).props("width=50%").props(
"height=100px").props("fit='scale-down'")
if __name__ in {"__main__", "__mp_main__"}: