Skip to content

Commit

Permalink
fix: update x position for text and icon if locale is right to left (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim authored Jan 2, 2024
1 parent c9a9f24 commit 67cd0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default function cardStyle(data: GetData, uiConfig: UiConfig): string {
const angle = {
titleXAngle: isDisabledAnimations ? (isRtlDirection ? 520 : 15) : (isRtlDirection ? 510 : 5),
titleYAngle: isDisabledAnimations ? 0 : -10,
textXAngle: isRtlDirection ? 205 : 20,
textXAngle: isRtlDirection ? 215 : 20,
dataXAngle: isRtlDirection ? 15 : 220,
iconXAngle: isRtlDirection ? 215 : -5,
iconXAngle: isRtlDirection ? 225 : -5,
imageXAngle: isDisabledAnimations ? 120 : 125,
imageYAngle: isDisabledAnimations ? 70 : 65,
userXAngle: isDisabledAnimations ? 119.9 : 109.9,
Expand Down

0 comments on commit 67cd0d0

Please sign in to comment.