Skip to content

Commit

Permalink
make it center
Browse files Browse the repository at this point in the history
  • Loading branch information
arkajyotiadhikary committed Nov 24, 2024
1 parent aad8308 commit 9a84fcb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,14 @@ class Card {
<g
data-testid="main-card-body"
transform="translate(0, ${
transform="translate(${this.width / 2}, ${
this.hideTitle ? this.paddingX : this.paddingY + 20
})"
style="transform: translate(${(this.paddingX / this.width) * 100}%, ${
this.hideTitle
? (this.paddingX / this.height) * 100
: ((this.paddingY + 20) / this.height) * 100
}%);"
>
${body}
</g>
Expand Down

0 comments on commit 9a84fcb

Please sign in to comment.