diff --git a/components/PluginTxtEditor.tsx b/components/PluginTxtEditor.tsx index 6a187b0..2722eb1 100644 --- a/components/PluginTxtEditor.tsx +++ b/components/PluginTxtEditor.tsx @@ -40,7 +40,7 @@ const PluginsLoader: React.FC = () => { - {process.browser && + {typeof window !== "undefined" && createPortal(

Paste plugins.txt

@@ -79,8 +79,6 @@ const PluginsLoader: React.FC = () => {
, document.body )} - {process.browser && - createPortal(
, document.body)} ); }; diff --git a/styles/PluginTxtEditor.module.css b/styles/PluginTxtEditor.module.css index ad82480..31da7c3 100644 --- a/styles/PluginTxtEditor.module.css +++ b/styles/PluginTxtEditor.module.css @@ -1,6 +1,6 @@ .dialog { top: 12px; - z-index: 4; + z-index: 8; background-color: #fbefd5; box-shadow: 0 0 1em black; max-width: 400px; @@ -21,11 +21,3 @@ display: flex; justify-content: space-between; } - -.drop-area { - position: absolute; - top: 0px; - left: 0px; - width: 100%; - height: 100%; -}