From de15287bab7554302f6c5be2a0cc2776067a6b56 Mon Sep 17 00:00:00 2001 From: Eric Weidow Date: Fri, 31 Mar 2023 11:31:11 +0200 Subject: [PATCH 1/2] fix #144, month labels not visible on firefox --- src/SvelteHeatmap.svelte | 6 +++--- src/views/Month.svelte | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SvelteHeatmap.svelte b/src/SvelteHeatmap.svelte index 23d19d8..060c3a2 100644 --- a/src/SvelteHeatmap.svelte +++ b/src/SvelteHeatmap.svelte @@ -30,7 +30,7 @@ {/each} {/if} - + {#each chunks as chunk, index} + {#each days as day} Date: Tue, 18 Feb 2025 20:07:17 +0100 Subject: [PATCH 2/2] fix: weekday labels and bump version --- package.json | 11 +++++++---- src/SvelteHeatmap.svelte | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f5c5716..8c59b2a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { "author": "Scott Bedard", + "contributors": [ + "Eric Weidow (https://github.com/studsministern)" + ], "bugs": { - "url": "https://github.com/scottbedard/svelte-heatmap/issues" + "url": "https://github.com/studsministern/svelte-heatmap/issues" }, "description": "A light weight and customizable version of GitHub's contribution graph", "devDependencies": { @@ -22,7 +25,7 @@ "src", "dist" ], - "homepage": "https://github.com/scottbedard/svelte-heatmap", + "homepage": "https://github.com/studsministern/svelte-heatmap", "keywords": [ "svelte" ], @@ -32,7 +35,7 @@ "name": "svelte-heatmap", "repository": { "type": "git", - "url": "git+https://github.com/scottbedard/svelte-heatmap.git" + "url": "git+https://github.com/studsministern/svelte-heatmap.git" }, "svelte": "src/index.js", "scripts": { @@ -42,5 +45,5 @@ "watch": "rollup -c -w" }, "unpkg": "dist/index.umd.min.js", - "version": "1.0.2" + "version": "1.0.3" } diff --git a/src/SvelteHeatmap.svelte b/src/SvelteHeatmap.svelte index 060c3a2..a6224ca 100644 --- a/src/SvelteHeatmap.svelte +++ b/src/SvelteHeatmap.svelte @@ -123,6 +123,6 @@ $: width = view === 'monthly' : (cellRect * chunks.length) - cellGap + dayLabelWidth; $: dayLabelPosition = index => { - return (cellRect * index) + (cellRect / 2) + monthLabelHeight; + return (cellRect * index) + (cellRect / 2) + monthLabelHeight + fontSize; } \ No newline at end of file