From 90af4814fc36fb94fe248d9795b9f372b4d8841a Mon Sep 17 00:00:00 2001 From: heyarne Date: Sat, 1 Jan 2022 12:11:18 +0100 Subject: [PATCH] Fix giant shadow-cljs logo --- resources/public/style.css | 2 +- src/heyarne/rect_packing/core.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]