Fix pluginstxt dialog
This commit is contained in:
parent
391fa0669d
commit
d45c4f51b1
@ -40,7 +40,7 @@ const PluginsLoader: React.FC<Props> = () => {
|
|||||||
<button onClick={onPluginsTxtButtonClick}>
|
<button onClick={onPluginsTxtButtonClick}>
|
||||||
{!pluginsTxt ? "Paste" : "Edit"} Skyrim plugins.txt file
|
{!pluginsTxt ? "Paste" : "Edit"} Skyrim plugins.txt file
|
||||||
</button>
|
</button>
|
||||||
{process.browser &&
|
{typeof window !== "undefined" &&
|
||||||
createPortal(
|
createPortal(
|
||||||
<dialog open={pluginsTxtShown} className={styles.dialog}>
|
<dialog open={pluginsTxtShown} className={styles.dialog}>
|
||||||
<h3>Paste plugins.txt</h3>
|
<h3>Paste plugins.txt</h3>
|
||||||
@ -79,8 +79,6 @@ const PluginsLoader: React.FC<Props> = () => {
|
|||||||
</dialog>,
|
</dialog>,
|
||||||
document.body
|
document.body
|
||||||
)}
|
)}
|
||||||
{process.browser &&
|
|
||||||
createPortal(<div className={styles["drop-area"]} />, document.body)}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.dialog {
|
.dialog {
|
||||||
top: 12px;
|
top: 12px;
|
||||||
z-index: 4;
|
z-index: 8;
|
||||||
background-color: #fbefd5;
|
background-color: #fbefd5;
|
||||||
box-shadow: 0 0 1em black;
|
box-shadow: 0 0 1em black;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
@ -21,11 +21,3 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drop-area {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 0px;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user