Fix pluginstxt dialog

This commit is contained in:
Tyler Hallada 2022-03-10 00:46:59 -05:00
parent 391fa0669d
commit d45c4f51b1
2 changed files with 2 additions and 12 deletions

View File

@ -40,7 +40,7 @@ const PluginsLoader: React.FC<Props> = () => {
<button onClick={onPluginsTxtButtonClick}>
{!pluginsTxt ? "Paste" : "Edit"} Skyrim plugins.txt file
</button>
{process.browser &&
{typeof window !== "undefined" &&
createPortal(
<dialog open={pluginsTxtShown} className={styles.dialog}>
<h3>Paste plugins.txt</h3>
@ -79,8 +79,6 @@ const PluginsLoader: React.FC<Props> = () => {
</dialog>,
document.body
)}
{process.browser &&
createPortal(<div className={styles["drop-area"]} />, document.body)}
</>
);
};

View File

@ -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%;
}