Skip to content

Commit

Permalink
fix: set height on element to avoid jumping on load
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jul 6, 2022
1 parent c8a968b commit b8d63d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visualizations/TimelineBarChart.vue
@@ -1,6 +1,7 @@
<template lang="pug">
div(v-if="datasets && datasets.length > 0")
bar(:chart-data="chartData" :chart-options="chartOptions")
// Height set here to avoid elements jumping when loading Activity view
bar(:chart-data="chartData" :chart-options="chartOptions" :height="330")
div.small(v-else-if="datasets === null", style="font-size: 16pt; color: #aaa;")
| No data
div.small(v-else, style="font-size: 16pt; color: #aaa;")
Expand Down

0 comments on commit b8d63d0

Please sign in to comment.