johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.33k stars 290 forks source link

Layout broken when book has style on `html`/`body` with `!important` #1122

Closed afduggirala closed 11 months ago

afduggirala commented 11 months ago

Hello, I just installed Foliate 3.0.0 from Flatpak on Fedora 38. Now I am seeing again the issue reported here: https://github.com/johnfactotum/foliate/issues/840

I believe this behavior had stopped happening at some point in the latest releases. Now in this new version I am seeing it again,

thanks,

johnfactotum commented 11 months ago
afduggirala commented 11 months ago
johnfactotum commented 11 months ago

Thanks for providing the book.

So the problem is that the book has padding: 0 !important set on the html element, which breaks the column layout. This should be easy to fix.