From 979a329d6ace4a8cb9d4f9b0c540ae3fb0f1c5c4 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 23 Sep 2025 11:11:02 -0500 Subject: [PATCH] Improved image formatting. --- inventory/routes/entry.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inventory/routes/entry.py b/inventory/routes/entry.py index 4e57cd1..5f57179 100644 --- a/inventory/routes/entry.py +++ b/inventory/routes/entry.py @@ -50,10 +50,11 @@ def init_entry_routes(app): "attrs": {"class": "form-control"}, "label_attrs": {"class": "form-label"}}, {"name": "image", "label": "", "row": "image", "type": "template", "label_spec": "{filename}", - "template": "image_display.html", "attrs": {"class": "img-fluid img-thumbnail"}}, + "template": "image_display.html", "attrs": {"class": "img-fluid img-thumbnail h-100"}, + "wrap": {"class": "h-100"}}, {"name": "notes", "type": "textarea", "label": "Notes", "row": "notes", "wrap": {"class": "col"}, - "attrs": {"class": "form-control", "rows": 10}}, + "attrs": {"class": "form-control", "rows": 10}, "label_attrs": {"class": "form-label"}}, ] layout = [ {"name": "label", "order": 5},