pluginkollektiv / statify

Statify – statistics plugin for WordPress
https://wordpress.org/plugins/statify/
GNU General Public License v3.0
76 stars 22 forks source link

fix text alignment in dashboard widget (#263) #264

Closed stklcode closed 1 year ago

stklcode commented 1 year ago

We use RTL direction for the chart container in order see the rightmost data when the chart has a horizontal scrollbar. This however results in wrong text layout if there is no data or an error occurred.

Revert the text direction for all child elements and remove the custom flex overrides for the chart labels.

resolves #263


The scrollbar is right by default: statify-264-01

The labels are right-aligned: statify-264-02

Inner text is displayed in default direction: statify-264-03

And on sites with RTL languages, too: statify-264-04

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication