Skip to content

Commit

Permalink
#472 fix chart width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Nov 13, 2024
1 parent 05625fd commit d628d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/reports/NestedReportCharts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<template>
<div>
<template v-for="chart in charts_to_render">
<div v-if="chart.level === 1" :key="chart.axis.join('.') + 'a'">
<div v-if="chart.level === 1" :key="chart.axis.join('.') + 'a'" style="overflow: scroll">
<div class="chart-container w-100 position-relative fixed_ratio">
<!-- Do not show canvas chart element in accessibility, use the table below -->
<component :is="my_component" :chart_data="reports" :show_average="chart.average" :axis="chart.axis"
Expand Down Expand Up @@ -39,9 +39,9 @@
</div>
</div>
<div v-else class="not-on-new-page" :key="chart.axis.join('.') + 'b'">
<chart-collapse-panel :title="chart.label" :level="chart.level">
<chart-collapse-panel :title="chart.label" :level="chart.level" >
<!-- Do not show canvas chart element in accessibility, use the table below -->
<div slot="chart_content">
<div slot="chart_content" class="chart-container w-100 position-relative fixed_ratio">
<component :is="my_component" :chart_data="reports" :show_average="chart.average"
:only_show_dynamic_average="chart.only_average" :axis="chart.axis" :chart-name="chart.label"
aria-hidden="true"/>
Expand Down

0 comments on commit d628d6f

Please sign in to comment.