Skip to content

Commit

Permalink
fix: make sure axis-tool is hidden behind details panel/button and bu…
Browse files Browse the repository at this point in the history
…mp Reveal to 4.21.2 (#4887)

* fix(react-components): make sure axis-tool is hidden behind details panel/button

* chore: bump Reveal to 4.21.2
  • Loading branch information
haakonflatval-cognite authored Nov 22, 2024
1 parent 02f57e5 commit 939eb33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ const Image360HistoricalPanel = styled.div<{ isExpanded: boolean }>`
min-width: 100%;
transition: transform 0.25s ease-in-out;
transform: ${({ isExpanded }) => (isExpanded ? 'translateY(0)' : 'translateY(100%)')};
z-index: 100;
`;
2 changes: 1 addition & 1 deletion viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cognite/reveal",
"version": "4.21.1",
"version": "4.21.2",
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion viewer/packages/tools/src/AxisGizmo/AxisGizmoTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function initializeStyle(element: HTMLElement, options: AxisGizmoOptions) {
return;
}
style.position = 'absolute';
style.zIndex = '1000';
style.zIndex = '1';
style.width = style.height = options.size + 'px';
const xMargin = options.xMargin + 'px';
const yMargin = options.yMargin + 'px';
Expand Down

0 comments on commit 939eb33

Please sign in to comment.