diff --git a/web/app.js b/web/app.js index 0df3c08..f301ea1 100644 --- a/web/app.js +++ b/web/app.js @@ -2132,8 +2132,8 @@ function renderCommitTypes() { for (const [key, value] of Object.entries(attrs)) node.setAttribute(key, String(value)); return node; }; - const W = 1000; - const H = 280; + const W = 560; + const H = 300; const margin = { left: 54, right: 14, top: 14, bottom: 30 }; const plotW = W - margin.left - margin.right; const plotH = H - margin.top - margin.bottom; @@ -2696,10 +2696,10 @@ function renderLandGap() { `author date → commit date, log scale · tangled changes by the day written, ${seriesLabel()}`; $("gap-stats").replaceChildren(); if (gaps.length === 0) { - svg.setAttribute("viewBox", "0 0 1000 340"); + svg.setAttribute("viewBox", "0 0 560 360"); const empty = document.createElementNS("http://www.w3.org/2000/svg", "text"); - empty.setAttribute("x", "500"); - empty.setAttribute("y", "170"); + empty.setAttribute("x", "280"); + empty.setAttribute("y", "180"); empty.setAttribute("text-anchor", "middle"); empty.setAttribute("class", "chart-tick"); empty.textContent = "No changes written in this period."; @@ -2723,8 +2723,8 @@ function renderLandGap() { for (const [key, value] of Object.entries(attrs)) node.setAttribute(key, String(value)); return node; }; - const W = 1000; - const H = 340; + const W = 560; + const H = 360; const margin = { left: 52, right: 16, top: 34, bottom: 30 }; const plotW = W - margin.left - margin.right; const plotH = H - margin.top - margin.bottom; diff --git a/web/index.html b/web/index.html index 16f3c7f..4961ea3 100644 --- a/web/index.html +++ b/web/index.html @@ -160,36 +160,26 @@ -
-
- - -