-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Formatting QR Codes #289
Comments
Hi @ralf-krause , Thank you for your feedback. I will take a look to see if it is possible to add a parameter to set the size of the QR code. In the meantime, you can set the size by adding some CSS to your theme. For example, the following would set the size, height and width, of all QR Codes generated by FilterCodes in the Moodle LMS site to 200px: img.fc-qrcode {
max-width: 200px!important;
} As for rounding the corners, I am not sure where you are getting a border-radius of 1rem for rounded corners. FilterCodes does not round the corners of the QR Code itself. Perhaps something in your theme is doing it? You could fix this by adding the following CSS to your theme: img.fc-qrcode {
border-radius: 0!important;
} I will consider your request for a sizing option. Best regards, Michael Milette |
Hi Michael, I found this CSS statements for formatting the qr codes myself. The problem for setting the size of all qr codes to 200 pixel will be that we have qr codes with only small information content like {qrcode} Hello World! {/qrcode}. And you have qr codes containing a lot of informations like https://machmitnetz.de/course/view.php?id=5§ion=12#tabs-tree-start The rounded corners for images are set in the standard Boost theme. All images get rounded corner. It seems to be a good idea to set the border-radius to 0 for all QR codes. I think this should be a bug in Moodle 4.3 because also very small images get rounded corners with border-radius: 1rem … I found this in my courses in Moodle 4.3 for example with the cc license image https://machmitnetz.de/course/view.php?id=5§ion=14#tabs-tree-start Best regards, |
Hi Michael, in my testing platform for Moodle I installed the FilterCodes plugin 2.4.4dev. To get qr codes without rounded corners I set the css statement Yes, it works but using the html div is nothing for all Moodle users. So a size parameter would be very nice for the FilterCodes qr code generator. :-) Best regards,
|
Prerequisites
Feature Request - The User Story
Could it be possible that we can set the size of qr codes by a parameter? Currently we get qr codes with 480x480 pixel.
Could it be possible to set the border-radius to 0 (zero)? In Moodle 4.3 and the Boost theme all images have rounded corners. The current border-radius for the qr codes generated by filtercodes is 1rem.
Screenshots / Mock-ups
No response
Alterative you have considered
No response
Additional information
No response
Planning on submitting a solution in a pull request (PR)?
No
Code of Conduct
The text was updated successfully, but these errors were encountered: