diff --git a/resources/public/style.css b/resources/public/style.css index d47cae6..6abdee7 100644 --- a/resources/public/style.css +++ b/resources/public/style.css @@ -22,7 +22,7 @@ body { align-items: center; } -svg { +svg.visualization { display: block; width: 500px; height: 500px; diff --git a/src/heyarne/rect_packing/core.cljs b/src/heyarne/rect_packing/core.cljs index be84301..0ad9781 100644 --- a/src/heyarne/rect_packing/core.cljs +++ b/src/heyarne/rect_packing/core.cljs @@ -53,7 +53,7 @@ sorted (map-indexed vector (pack-rects-naive frame rects))] [:main [:h1 "Visualization"] - [:svg {:viewBox "-1 -1 501 501" :xmlns "http://www.w3.org/2000/svg"} + [:svg.visualization {:viewBox "-0.5 -0.5 501 501" :xmlns "http://www.w3.org/2000/svg"} [:rect {:width (geom/width frame) :height (geom/height frame)}] (for [[idx rect] sorted]