Skip to content

Commit

Permalink
Show only half the labels on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Apr 21, 2023
1 parent 5d278a9 commit 39e86fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions lib/SvelteUi/app/dist/index.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/SvelteUi/app/src/lib/BarChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
<g class="axis x-axis">
{#each config.x.ticks as point, i}
<g class="tick" transform="translate({xScale(i)},{heightAvailable})">
{#if barWidth > 20 || i%2 == 0}
<text x="{barWidth/2}" y="-4">{point.label}</text>
{/if}
</g>
{/each}
</g>
Expand Down
2 changes: 1 addition & 1 deletion lib/SvelteUi/app/src/lib/StatusPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
s.upgrading = true;
return s;
});
upgrade(nextVersion);
upgrade(nextVersion.tag_name);
}
}
}
Expand Down

0 comments on commit 39e86fa

Please sign in to comment.