Fix Chart Centering in RTL Layouts#19800
Conversation
danharrin
left a comment
There was a problem hiding this comment.
Please attach a reproduction repository for this problem, as I cannot reproduce it locally, and these changes seem to be too broad for just the RTL fix
Hi @danharrin, I have created a reproduction repository here: https://github.com/aymanalareqi/chart_widgets_issue This project includes all chart widget types on the dashboard. I have set the default locale to I hope this helps in isolating the issue and finding a more targeted CSS fix. Thanks! |
|
Seems like a Safari-only issue |


This PR fixes an alignment issue where chart widgets were appearing incorrectly aligned to the right in RTL (Right-to-Left) layouts.
By applying
@apply mx-auto flex w-full justify-center;to the.fi-wi-chart-canvas-ctnclass, the chart container is now correctly centered across all text directions.Visual changes
befor
after
Functional changes
composer cscommand.