You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
在 使用了
tailwindcss
和daisyui
后, UI 布局会方便很多。在使用过程中会发现一些问题, popup , tabpages 这类完整的页面没有问题。
但是,在 content-script 中使用样式的时候,会保留
tailwindcss
的样式,但是daisyui
的样式会丢失。解决思路,
因为,默认的 html 顶层容器是没有 data-theme 的,而这个 参数在 渲染 daisyui 使用。
所以,可以给默认添加一个顶层容器,并添加 data-theme 属性。
Beta Was this translation helpful? Give feedback.
All reactions