remnoteio / remnote-plugin-template-react

A template for V1 frontend plugins using React. Please see the getting started guide for instructions:
https://plugins.remnote.com/getting-started/quick_start_guide
MIT License
23 stars 11 forks source link

Tailwind Preflight from native plugins messes up app UI #15

Open hannesfrank opened 8 months ago

hannesfrank commented 8 months ago

https://github.com/remnoteio/remnote-plugin-template-react/blob/cbfde0774cf75067bff9c8425387805bb5a545c6/src/style.css#L6

If plugin styles are injected into the app Tailwind Preflight messes up the UI. Don't quite remember when/why injecting happens. I think this is limited to native plugins?

image image

Maybe warn about styles when going native, or remove the preflight from the template.

Definite fix would be using the preflight (or some sensible normalisation) in the app itself.

bjsi commented 8 months ago

Hey @hannesfrank, thanks for the report, will take a look when I get time. Btw, I just approved the unlisted plugin you uploaded. Sorry for the delay, the plugin routes were all 404-ing for some reason... fixed now. Hope you are doing well btw :)