Make toasts appear above tail popups

This commit is contained in:
Martin Fournier
2022-01-08 09:59:31 -05:00
parent d2193e017d
commit 2b0a248673
2 changed files with 15 additions and 2 deletions
+3 -1
View File
@@ -113,6 +113,8 @@ const useStyles = makeStyles((theme: Theme) =>
}),
);
export const logBoxBaseZIndex = 1500;
function LogWindow(props: IProps): React.ReactElement {
const [script, setScript] = useState(props.script);
const classes = useStyles();
@@ -147,7 +149,7 @@ function LogWindow(props: IProps): React.ReactElement {
function updateLayer(): void {
const c = container.current;
if (c === null) return;
c.style.zIndex = 1500 + layerCounter + "";
c.style.zIndex = logBoxBaseZIndex + layerCounter + "";
layerCounter++;
rerender();
}