Text position different in generated PDF than in component
Closed this issue ยท 5 comments
siiddhantt commented
ivmarcos commented
I'd guess is due to some CSS and related to the html2canvas
package that is used internally. Hard to say without looking at the code, but here's a similar issue in there: niklasvh/html2canvas#2775.
bigyanse commented
I am using TailwindCSS and restoring img
display attribute to inline-block
helped me. Check out this reference.
siiddhantt commented
charlietlamb commented
Add this in your css file if you are using tailwind:
@layer base {
img {
@apply inline-block;
}
}
It will fix the issue in html2canvas
PeterCha90 commented
Add this in your css file if you are using tailwind:
@layer base { img { @apply inline-block; } }
It will fix the issue in html2canvas
You saved my day!! AWESOME!!