From f69dba437b6d674ae59ad80f11e4cb23c84a962d Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 12 Jul 2022 12:38:57 +0200 Subject: [PATCH] Moved time to bottom Signed-off-by: Romein van Buren --- gui/dashboard/tile-rawvalue.svelte | 6 +-- gui/dashboard/tile.svelte | 59 ++++++++++++++++++------------ 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/gui/dashboard/tile-rawvalue.svelte b/gui/dashboard/tile-rawvalue.svelte index 2d2cadd..5678182 100644 --- a/gui/dashboard/tile-rawvalue.svelte +++ b/gui/dashboard/tile-rawvalue.svelte @@ -12,7 +12,7 @@ -
+
{value}
@@ -23,8 +23,4 @@ font-weight: 600; margin-top: auto; } - - .value.center { - margin: auto 0; - } diff --git a/gui/dashboard/tile.svelte b/gui/dashboard/tile.svelte index 501da9b..7268cff 100644 --- a/gui/dashboard/tile.svelte +++ b/gui/dashboard/tile.svelte @@ -29,30 +29,29 @@ }); -
- {#if title || subtitle || date} +
+ {#if title || subtitle}
-
- {#if title} -
{title}
- {/if} + {#if title} +
{title}
+ {/if} - {#if subtitle} -
{subtitle}
- {/if} -
- - {#if date || since} -
- {formattedDate} - {#if date && since}
{/if} - {formattedDuration} -
+ {#if subtitle} +
{subtitle}
{/if}
{/if} -
+
+
+ {#if date || since} +
+ {formattedDate} + {#if date && since}
{/if} + {formattedDuration} +
+ {/if} +