Customizable card size for dashboard

This commit is contained in:
2024-07-11 17:45:10 +02:00
parent f3f7dc2e09
commit 2bfb2f0957
3 changed files with 161 additions and 76 deletions

View File

@@ -4,8 +4,8 @@ import Chart from "../../util/Chart.svelte";
import { color_by_name } from "../../util/Util.svelte";
import { formatDataVolume, formatThousands } from "../../util/Formatting.svelte";
export let expanded = false
$: chart_height = expanded ? "250px" : "150px"
export let card_size = 1
$: chart_height = (100 + (card_size * 50)) + "px"
let graph_views_downloads = null
let graph_bandwidth = null