fixed display zones dispay cetner

This commit is contained in:
Nalvazhuthi 2025-04-09 09:42:49 +05:30
parent 5a5a582171
commit 9903d6351a
4 changed files with 11 additions and 7 deletions

View File

@ -398,3 +398,6 @@ export const DraggableWidget = ({
}; };
// by using canvasDimensions.height canvasDimensions.width dynamically div value insted of static 6 and 4 calculate according to canvasDimensions.width canvasDimensions.height

View File

@ -510,7 +510,6 @@ const DroppedObjects: React.FC = () => {
const widthMultiplier = parseFloat(containerWidth) * 0.13; const widthMultiplier = parseFloat(containerWidth) * 0.13;
console.log("zone.objects: ", zone.objects);
return ( return (
<div <div
onPointerMove={handlePointerMove} onPointerMove={handlePointerMove}

View File

@ -246,7 +246,7 @@ const Panel: React.FC<PanelProps> = ({
// Calculate capacities and dimensions // Calculate capacities and dimensions
const topWidth = getPanelStyle("top").width; const topWidth = getPanelStyle("top").width;
const bottomWidth = getPanelStyle("bottom").width; const bottomWidth = getPanelStyle("bottom").height;
const leftHeight = getPanelStyle("left").height; const leftHeight = getPanelStyle("left").height;
const rightHeight = getPanelStyle("right").height; const rightHeight = getPanelStyle("right").height;
@ -255,13 +255,15 @@ const Panel: React.FC<PanelProps> = ({
const leftCapacity = calculatePanelCapacity("left"); const leftCapacity = calculatePanelCapacity("left");
const rightCapacity = calculatePanelCapacity("right"); const rightCapacity = calculatePanelCapacity("right");
console.log('topCapacity: ', topCapacity);
console.log('bottomWidth: ', bottomWidth);
return ( return (
<> <>
<style> <style>
{` {`
:root { :root {
--topWidth: ${topWidth}; --topWidth: ${topWidth};
--bottomWidth: ${bottomWidth}; --bottomWidth: ${bottomWidth} ;
--leftHeight: ${leftHeight}; --leftHeight: ${leftHeight};
--rightHeight: ${rightHeight}; --rightHeight: ${rightHeight};

View File

@ -68,7 +68,7 @@
display: flex; display: flex;
background-color: var(--background-color); background-color: var(--background-color);
position: absolute; position: absolute;
// bottom: 10px; bottom: 10px;
left: 50%; left: 50%;
gap: 6px; gap: 6px;
@ -77,7 +77,7 @@
overflow: auto; overflow: auto;
max-width: calc(100% - 500px); max-width: calc(100% - 500px);
z-index: 3; z-index: 3;
transform: translate(-50%, -100%); transform: translate(-50%, -0%);
&::-webkit-scrollbar { &::-webkit-scrollbar {
display: none; display: none;
@ -124,7 +124,7 @@
} }
.zone-wrapper.bottom { .zone-wrapper.bottom {
top: var(--bottomWidth); bottom: var(--bottomWidth);
// bottom: 200px; // bottom: 200px;
} }
@ -370,7 +370,7 @@
.playingFlase { .playingFlase {
.zone-wrapper.bottom { .zone-wrapper.bottom {
top: var(--bottomWidth); bottom: var(--bottomWidth);
// bottom: 210px; // bottom: 210px;
} }
} }