michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
30 stars 42 forks source link

Bug: Moodle 4.1+ sizing issue of radial and pie chart #254

Closed michael-milette closed 1 year ago

michael-milette commented 1 year ago

Prerequisites

What happened?

Starting in Moodle 4.1, {chart radial} and {chart pie} create huge charts that either do not fit in blocks or are cut off in pages.

What do you think should have happened?

Charts to fit correctly regardless of where they are placed.

Steps to reproduce

Add one of the tags to a page or block and view.

Screenshots

image

Moodle version

Moodle 4.1 and later.

Installed Moodle UI Language packs.

If other language(s), please specify

No response

Workaround

Add the following css to your theme:

.chart-area .chart-image { width: auto; }

Note however that this will affect all charts, not just those generated by FilterCodes.

Additional information

No response

System information

]

Code of Conduct

michael-milette commented 1 year ago

This issue has been resolved in the latest release of FilterCodes.