mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 12:23:20 +00:00
Fixed issue with timeline size change
This commit is contained in:
1 parent
2b4650d656
commit
df79be9aff
1 file changed
+17
-15
@@ -38,25 +38,27 @@ export const LowerPanel = ({ children }: LowerPanelPropsI) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
"absolute bottom-0",
|
||||
"w-screen overflow-auto",
|
||||
"bg-ui-panel",
|
||||
].join(" ")}
|
||||
style={{ height: displayHeight }}
|
||||
onPointerOver={() => {
|
||||
overTimeline.value = true;
|
||||
}}
|
||||
onPointerLeave={() => (overTimeline.value = false)}
|
||||
onPointerDown={onTimelineClick}
|
||||
>
|
||||
<>
|
||||
<div
|
||||
className="w-full cursor-ns-resize bg-ui-panel-border"
|
||||
style={{ height: 3, zIndex: 1000 }}
|
||||
onPointerDown={onPointerDown}
|
||||
/>
|
||||
{children}
|
||||
</div>
|
||||
<div
|
||||
className={[
|
||||
"absolute bottom-0",
|
||||
"w-screen overflow-auto",
|
||||
"bg-ui-panel",
|
||||
].join(" ")}
|
||||
style={{ height: displayHeight - 3 }}
|
||||
onPointerOver={() => {
|
||||
overTimeline.value = true;
|
||||
}}
|
||||
onPointerLeave={() => (overTimeline.value = false)}
|
||||
onPointerDown={onTimelineClick}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user