{/* Left Arrow */}
{showLeftArrow && (
@@ -198,28 +192,31 @@ const DisplayZone: React.FC
= ({
)}
- {/* Zones Wrapper */}
- {Object.keys(zonesData).length !== 0 ? (
-
- {Object.keys(zonesData).map((zoneName, index) => (
-
{
- handleSelect2dZoneData(zonesData[zoneName]?.zoneId, zoneName);
- }}
- >
- {zoneName}
-
- ))}
-
- ) : (
-
-
- No zones? Create one!
-
- )}
+ {/* Scrollable Zones Container */}
+
+ {Object.keys(zonesData).length !== 0 ? (
+ <>
+ {Object.keys(zonesData).map((zoneName, index) => (
+
handleSelect2dZoneData(zonesData[zoneName]?.zoneId, zoneName)}
+ >
+ {zoneName}
+
+ ))}
+ >
+ ) : (
+
+
+ No zones? Create one!
+
+ )}
+
{/* Right Arrow */}
{showRightArrow && (
diff --git a/app/src/components/ui/componets/DistanceLine.tsx b/app/src/components/ui/componets/DistanceLine.tsx
deleted file mode 100644
index 8dec7b1..0000000
--- a/app/src/components/ui/componets/DistanceLine.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-import React from "react";
-
-interface DistanceLinesProps {
- obj: {
- position: {
- top?: number | "auto";
- left?: number | "auto";
- right?: number | "auto";
- bottom?: number | "auto";
- };
- };
- activeEdges: {
- vertical: "top" | "bottom";
- horizontal: "left" | "right";
- } | null;
-}
-
-const DistanceLines: React.FC = ({ obj, activeEdges }) => {
- if (!activeEdges) return null;
-
- return (
- <>
- {activeEdges.vertical === "top" && typeof obj.position.top === "number" && (
-
- {obj.position.top.toFixed()}px
-
- )}
-
- {activeEdges.vertical === "bottom" &&
- typeof obj.position.bottom === "number" && (
-
- {obj.position.bottom.toFixed()}px
-
- )}
-
- {activeEdges.horizontal === "left" &&
- typeof obj.position.left === "number" && (
-
- {obj.position.left.toFixed()}px
-
- )}
-
- {activeEdges.horizontal === "right" &&
- typeof obj.position.right === "number" && (
-
- {obj.position.right.toFixed()}px
-
- )}
- >
- );
-};
-
-export default DistanceLines;
\ No newline at end of file
diff --git a/app/src/components/ui/componets/DistanceLines.tsx b/app/src/components/ui/componets/DistanceLines.tsx
index e2ccbc1..62cfd3b 100644
--- a/app/src/components/ui/componets/DistanceLines.tsx
+++ b/app/src/components/ui/componets/DistanceLines.tsx
@@ -20,26 +20,31 @@ const DistanceLines: React.FC = ({ obj, activeEdges }) => {
return (
<>
- {activeEdges.vertical === "top" && typeof obj.position.top === "number" && (
-
- {obj.position.top}px
-
- )}
+ >
+
+ {obj.position.top}px
+
+