Open igorshmukler opened 4 years ago
A useful addition - especially given the current lack of support for SVG in popular email clients like Gmail (link).
One issue I notice is that it's not possible to customize the table padding. This can be done later with CSS, but to remain consistent with the SVG parameters, I would suggest a couple of edits:
// new variable var margin = options.padding; ... // invisible margin added to outer table HTML const aHTML = ['<table style="border:0;border-collapse:collapse;margin:' + margin + 'px">'];
One further improvement would allow users to customize the color of the padding, since the margin property inherits from the parent element.
thank you for the suggestion. you are certainly welcome to raise a PR with the suggested enhancement against Diophant/qrcode-svg-table
(https://github.com/Diophant/qrcode-svg-table).
A useful addition - especially given the current lack of support for SVG in popular email clients like Gmail (link).
One issue I notice is that it's not possible to customize the table padding. This can be done later with CSS, but to remain consistent with the SVG parameters, I would suggest a couple of edits:
One further improvement would allow users to customize the color of the padding, since the margin property inherits from the parent element.