diff --git a/src/app/content/index.tsx b/src/app/content/index.tsx index 492f3c7..b9c942e 100644 --- a/src/app/content/index.tsx +++ b/src/app/content/index.tsx @@ -1,5 +1,5 @@ -import ReactDOM from 'react-dom/client' import React from 'react' +import { createRoot } from 'react-dom/client' import { Remesh } from 'remesh' import { RemeshRoot } from 'remesh-react' import { RemeshLogger } from 'remesh-logger' @@ -12,15 +12,15 @@ export default defineContentScript({ matches: ['*://*.example.com/*', '*://*.google.com/*', '*://*.v2ex.com/*'], async main(ctx) { const store = Remesh.store({ - externs: [StorageImpl] - // inspectors: [RemeshLogger()] + externs: [StorageImpl], + inspectors: [RemeshLogger()] }) const ui = await createContentScriptUi(ctx, { name: __NAME__, type: 'overlay', mount(container) { - const root = ReactDOM.createRoot(container) + const root = createRoot(container) root.render( diff --git a/src/app/content/views/AppContainer/index.tsx b/src/app/content/views/AppContainer/index.tsx index c30c1f4..1c80dd1 100644 --- a/src/app/content/views/AppContainer/index.tsx +++ b/src/app/content/views/AppContainer/index.tsx @@ -17,7 +17,7 @@ const AppContainer: FC = ({ children }) => { style={{ width: `${size}px` }} - className="fixed bottom-10 right-10 top-5 z-top box-border grid grid-flow-col grid-rows-[auto_1fr_auto] rounded-xl bg-slate-50 font-sans shadow-2xl" + className="fixed bottom-10 right-10 top-5 z-top box-border grid min-h-[375px] grid-flow-col grid-rows-[auto_1fr_auto] rounded-xl bg-slate-50 font-sans shadow-2xl" > {children}
{ const websiteInfo = getWebSiteInfo() return ( -
- +
+ + + + + +