template delete bug fix and floating display same icon for all floatin

This commit is contained in:
Nalvazhuthi
2025-04-11 11:24:23 +05:30
parent 312479eb1a
commit 87d73894fe
7 changed files with 68 additions and 31 deletions

View File

@@ -117,6 +117,7 @@ const DroppedObjects: React.FC = () => {
const zoneEntries = Object.entries(zones);
if (zoneEntries.length === 0) return null;
const [zoneName, zone] = zoneEntries[0];
console.log('zone: ', zone);
function handleDuplicate(zoneName: string, index: number) {
setOpenKebabId(null);
@@ -560,7 +561,7 @@ const DroppedObjects: React.FC = () => {
key={`${zoneName}-${index}`}
className={`${obj.className} ${
selectedChartId?.id === obj.id && "activeChart"
}`}
} `}
ref={chartWidget}
style={{
position: "absolute",
@@ -569,7 +570,9 @@ const DroppedObjects: React.FC = () => {
right: rightPosition,
bottom: bottomPosition,
pointerEvents: isPlaying ? "none" : "auto",
minHeight: `${obj.className === "warehouseThroughput" && "150px !important"} `
minHeight: `${
obj.className === "warehouseThroughput" && "150px !important"
} `,
}}
onPointerDown={(event) => {
setSelectedChartId(obj);