Skip to content

Home Information - Your home, your data, organized.

Python

Tweak to SVG path pointer events style.

Anthony Cassandrae87897e128be
diff --git a/src/hi/apps/location/templates/location/panes/svg_path_item.html b/src/hi/apps/location/templates/location/panes/svg_path_item.html
index 580ce185..8bbc404c 100644
--- a/src/hi/apps/location/templates/location/panes/svg_path_item.html
+++ b/src/hi/apps/location/templates/location/panes/svg_path_item.html
@@ -5,7 +5,7 @@
stroke="{{ svg_path_item.stroke_color }}"
stroke-width="{{ svg_path_item.stroke_width }}"
vector-effect="non-scaling-stroke"
- {% if not svg_path_item.is_closed %}open-path="true"{% endif %}
+ {% if not svg_path_item.is_closed %}style="pointer-events: stroke;"{% endif %}
onmouseover="this.style.strokeWidth='10';"
onmouseout="this.style.strokeWidth='{{ svg_path_item.stroke_width }}';"
d="{{ svg_path_item.svg_path }}"></path>
diff --git a/src/hi/static/css/main.css b/src/hi/static/css/main.css
index d7fac895..66ff50ea 100644
--- a/src/hi/static/css/main.css
+++ b/src/hi/static/css/main.css
@@ -211,9 +211,6 @@ a.underline:visited {
text-align: center;
}
-path[open-path] {
- pointer-events: stroke;
-}
svg[action-state="move"] {
cursor: move;
}