diff --git a/bricktracker/part.py b/bricktracker/part.py index af901b2..c847db5 100644 --- a/bricktracker/part.py +++ b/bricktracker/part.py @@ -73,7 +73,7 @@ class BrickPart(RebrickablePart): # A identifier for HTML component def html_id(self) -> str: - components: list[str] = [] + components: list[str] = ['part'] if self.fields.figure is not None: components.append(self.fields.figure) diff --git a/static/styles.css b/static/styles.css index ee82ffe..0651e20 100644 --- a/static/styles.css +++ b/static/styles.css @@ -46,7 +46,7 @@ object-fit:contain; } -.table-td-missing { +.table-td-input { max-width: 150px; } diff --git a/templates/macro/form.html b/templates/macro/form.html index cd126e9..f88b673 100644 --- a/templates/macro/form.html +++ b/templates/macro/form.html @@ -16,8 +16,13 @@ {% endif %} {% endmacro %} -{% macro input(id, html_id, url, value) %} - {{ name }} +