From 0ff2202da07e6a39394e4ce92a8bc483e4995741 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 12 Jul 2022 11:34:04 +0200 Subject: [PATCH] Relative typography for the dashboard Signed-off-by: Romein van Buren --- gui/dashboard/tile-rawvalue.svelte | 12 +++++------- gui/dashboard/tile.svelte | 15 ++++++++++++--- lib/dashboard/build.js | 4 ++-- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/gui/dashboard/tile-rawvalue.svelte b/gui/dashboard/tile-rawvalue.svelte index cc2aaf3..7d03c68 100644 --- a/gui/dashboard/tile-rawvalue.svelte +++ b/gui/dashboard/tile-rawvalue.svelte @@ -10,22 +10,20 @@ export let weight = 600; - -
+ +
{value}
diff --git a/gui/dashboard/tile.svelte b/gui/dashboard/tile.svelte index aa2c2e2..4bf51e5 100644 --- a/gui/dashboard/tile.svelte +++ b/gui/dashboard/tile.svelte @@ -3,6 +3,7 @@ export let subtitle; export let color; export let date; + export let center = false;
@@ -26,7 +27,7 @@
{/if} -
+
diff --git a/lib/dashboard/build.js b/lib/dashboard/build.js index 7eb0b7c..a9d8313 100644 --- a/lib/dashboard/build.js +++ b/lib/dashboard/build.js @@ -56,14 +56,14 @@ async function build({ server, settings }) { }); const { output } = await bundle.generate({ - sourcemap: true, + sourcemap: false, format: 'iife', name: 'app', file: 'public/build/bundle.js', }); return { - map: output[0].map.toUrl(), + map: output[0].map ? output[0].map.toUrl() : '', code: output[0].code, css: cssOutput.css, };