feat: Enhance MainScene with comparison product handling and update styles for layout components

This commit is contained in:
Vishnu 2025-06-13 18:15:35 +05:30
parent a6cf6a9a6c
commit fe12ab2f4a
3 changed files with 525 additions and 523 deletions

View File

@ -52,7 +52,7 @@ function MainScene() {
const { visualizationSocket } = useSocketStore();
const { selectedZone } = useSelectedZoneStore();
const { setFloatingWidget } = useFloatingWidget();
const { clearComparisonProduct } = useComparisonProduct();
const { comparisonProduct, clearComparisonProduct } = useComparisonProduct();
const { selectedFloorItem, setSelectedFloorItem } = useSelectedFloorItem();
const { setName } = useAssetsStore();
const { projectId } = useParams()
@ -120,7 +120,9 @@ function MainScene() {
</>
)}
<div
className="scene-container"
className={`scene-container${
comparisonProduct?.productUuid ? " half-view" : ""
}`}
id="work-space-three-d-canvas"
style={{
height: isPlaying || activeModule !== "visualization" ? "100vh" : "",

View File

@ -28,6 +28,9 @@ section,
border: none;
}
}
.scene-container.half-view{
width: 50vw !important;
}
.tooltip {
position: absolute;

File diff suppressed because it is too large Load Diff