Skip to content

Commit

Permalink
fix(radial-bar-chart): bottom text not central align if screen size >…
Browse files Browse the repository at this point in the history
… 2000px
  • Loading branch information
0xJacky committed Jan 31, 2025
1 parent b3e5edc commit 437411b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/src/components/Chart/RadialBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const chartOptions = computed(() => ({
:key="theme"
class="radial-bar-container"
>
<p class="bottom_text">
<p class="bottom-text">
{{ bottomText }}
</p>
<VueApexCharts
Expand Down Expand Up @@ -103,6 +103,10 @@ const chartOptions = computed(() => ({
left: 50%;
transform: translateX(-50%);
}
@media (min-width: 2000px) {
left: 50%;
transform: translateX(-50%);
}
}
.text {
Expand All @@ -111,9 +115,11 @@ const chartOptions = computed(() => ({
text-align: center;
}
.bottom_text {
.bottom-text {
position: absolute;
top: calc(106px);
left: 50%;
transform: translateX(-50%);
font-weight: 600;
width: 100%;
text-align: center;
Expand Down

0 comments on commit 437411b

Please sign in to comment.