From 9ffa390a821d95704007c0164d756d1f473be30f Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Thu, 12 Dec 2024 20:27:02 +0300 Subject: [PATCH] fixed z-index, bandage loading error --- src/app/styles/editor/page.module.css | 4 ++-- src/app/workshop/create/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/styles/editor/page.module.css b/src/app/styles/editor/page.module.css index 5317b18..45563e8 100644 --- a/src/app/styles/editor/page.module.css +++ b/src/app/styles/editor/page.module.css @@ -17,7 +17,7 @@ border-radius: 10px; border: 1px var(--main-element-color) solid; position: relative; - z-index: 1; + z-index: 2; width: 400px; height: 500px; overflow: hidden; @@ -95,7 +95,7 @@ position: relative; top: -10px; border: 1px var(--main-element-color) solid; - z-index: 0; + z-index: 1; padding-top: calc(1rem + 10px); display: flex; flex-direction: column; diff --git a/src/app/workshop/create/page.tsx b/src/app/workshop/create/page.tsx index ef6f65c..6f52859 100644 --- a/src/app/workshop/create/page.tsx +++ b/src/app/workshop/create/page.tsx @@ -489,7 +489,7 @@ const Selector = ({ setTitle, onBandageChange, onChange, heightVal, useOld }: Se }; const ondrop = (evt: React.DragEvent) => { - getData(evt.dataTransfer?.files[0]) + useOld ? getDataOld(evt.dataTransfer?.files[0]) : getData(evt.dataTransfer?.files[0]) evt.preventDefault(); containerRef.current.style.borderStyle = "dashed";