diff --git a/inventory/templates/testing.html b/inventory/templates/testing.html index f23ea05..f8f67a2 100644 --- a/inventory/templates/testing.html +++ b/inventory/templates/testing.html @@ -2,24 +2,21 @@ {% set dot_size = [grid_size * 1.25, 32]|max|int %} {% block style %} -:root { - --grid: {{ grid_size }}px; + +#gridWrap { + width: 100%; + height: 80vh; + position: relative; } #grid { + position: relative; cursor: crosshair; - height: 80vh; width: 100%; + height: 100%; touch-action: none; } -@supports (height: calc(round(nearest, 80vh, {{ grid_size }}px))) { - #grid { - height: calc(round(nearest, 80vh, var(--grid)) + 1px); - width: calc(round(nearest, 100%, var(--grid)) + 1px); - } -} - #toolBar { top: 10px; transform: translateX(-50%); @@ -46,143 +43,145 @@ {% block main %}