zenno: remove the expand button from stat charts

This commit is contained in:
2026-05-22 23:15:34 -04:00
parent 7600c48cc7
commit a8c1b9c754

View File

@@ -43,10 +43,6 @@
let height = $state(0); let height = $state(0);
let expand = $state(false); let expand = $state(false);
const expandIcon = $derived(expand ? '◀' : '▶');
function clickExpand() {
expand = !expand;
}
const xLabel = $derived(Stat[stat]); const xLabel = $derived(Stat[stat]);
const xLines = $derived([xRule].flat(1)); const xLines = $derived([xRule].flat(1));
@@ -117,10 +113,7 @@
<div bind:clientWidth={width} bind:clientHeight={height} class={['flex h-full w-full flex-col md:flex-row', className]}> <div bind:clientWidth={width} bind:clientHeight={height} class={['flex h-full w-full flex-col md:flex-row', className]}>
<div role="img" {@attach makeChart}> <div role="img" {@attach makeChart}>
<span>Loading chart!</span> <span>the chart seems to have didn't</span>
</div>
<div class="my-5 flex h-full flex-row place-content-end md:flex-col md:place-content-start">
<button class="h-8 rounded border px-2 pb-1 align-middle" onclick={clickExpand}>{expandIcon}</button>
</div> </div>
</div> </div>