mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 22:02:36 +00:00
Updates to DND (#287)
New state colour/text when cannot drop New colour when okay to drop New bar in timeline grid when okay to drop Tracks that are okay to drop glow --------- Co-authored-by: Christopher Oliphant <RALifeCoach@users.noreply.github.com>
This commit is contained in:
1 parent
0b0dab8125
commit
3aa2379477
16 files changed
+415
-308
No files matched your search
@@ -1,10 +1,6 @@
|
||||
import React from "react";
|
||||
import { useMouseEventsTimeline } from "~/pages/PageEnigma/comps/Timeline/utils/useMouseEventsTimeline";
|
||||
import {
|
||||
dndTimelineHeight,
|
||||
overTimeline,
|
||||
timelineHeight,
|
||||
} from "~/pages/PageEnigma/store";
|
||||
import { dndTimelineHeight, timelineHeight } from "~/pages/PageEnigma/store";
|
||||
import useTimelineClick from "~/pages/PageEnigma/comps/Timeline/utils/useTimelineClick";
|
||||
import { Pages } from "~/pages/PageEnigma/constants/page";
|
||||
|
||||
@@ -25,17 +21,13 @@ export const LowerPanel = ({ children }: LowerPanelPropsI) => {
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className="absolute w-full cursor-ns-resize bg-ui-panel-border h-1 z-10"
|
||||
style={{bottom: displayHeight }}
|
||||
className="absolute z-10 h-1 w-full cursor-ns-resize bg-ui-panel-border"
|
||||
style={{ bottom: displayHeight }}
|
||||
onPointerDown={onPointerDown}
|
||||
/>
|
||||
<div
|
||||
className={["absolute bottom-0", "w-screen", "bg-ui-panel"].join(" ")}
|
||||
style={{ height: displayHeight }}
|
||||
onPointerOver={() => {
|
||||
overTimeline.value = true;
|
||||
}}
|
||||
onPointerLeave={() => (overTimeline.value = false)}
|
||||
onClick={onTimelineClick}>
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user