From 07627581d9b155ab033835b49e8d2e06e606b53e Mon Sep 17 00:00:00 2001 From: Emily Dodds Date: Wed, 14 Sep 2022 16:37:36 -0500 Subject: [PATCH] Fix: Extending horizontal scroll on tree view (#109) * Extending horizontal scroll to apply to entire tree view rather than only sub-tree structures. * Added bottom margin to account for overlapping footer in Console. Co-authored-by: Emily Dodds --- .../src/components/Tree/TreeItem.spec.tsx | 2 + .../src/components/Tree/TreeItem.tsx | 1 + .../Tree/__snapshots__/TreeItem.spec.tsx.snap | 2 + .../src/components/Tree/tree.scss | 157 ++++++++++++------ .../SceneHierarchyTree/SceneNodeLabel.tsx | 3 +- .../SceneHierarchyTreeItem.spec.tsx.snap | 14 +- .../components/SubModelTree/SubModelTree.scss | 15 +- .../__snapshots__/SubModelTree.spec.tsx.snap | 2 + 8 files changed, 129 insertions(+), 67 deletions(-) diff --git a/packages/scene-composer/src/components/Tree/TreeItem.spec.tsx b/packages/scene-composer/src/components/Tree/TreeItem.spec.tsx index b5aa92cf0..5e99778cd 100644 --- a/packages/scene-composer/src/components/Tree/TreeItem.spec.tsx +++ b/packages/scene-composer/src/components/Tree/TreeItem.spec.tsx @@ -67,6 +67,7 @@ describe('', () => { data-mocked="Checkbox" >
', () => { data-mocked="Checkbox" >
( {expandable && (
- - Label 1 +

+ Label 1 +

diff --git a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/SubModelTree.scss b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/SubModelTree.scss index 8a2e85c7a..3c4cfe90d 100644 --- a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/SubModelTree.scss +++ b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/SubModelTree.scss @@ -2,24 +2,20 @@ .tm-sub-model { .tm-tree-item-inner { background-color: #414750; - border-bottom: 1px solid #2a2e33; display: grid; grid-template-columns: repeat(10, 1fr); - padding-top: 0; - padding-bottom: 0; - padding-right: 0px; - + padding: 0 8px; + .tm-icon-button { grid-column: 1/2; - position: relative; } span { + background-color: #414750; grid-column: 2/-1; display: flex; flex-direction: row; justify-content: space-between; - background-color: #414750; p { background-color: #414750; @@ -41,13 +37,8 @@ } } } - .actions { float: right; } - - .tm-tree.tm-submodel-tree { - border-left: 1px solid green; - } } } diff --git a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/__tests__/__snapshots__/SubModelTree.spec.tsx.snap b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/__tests__/__snapshots__/SubModelTree.spec.tsx.snap index 02b7b7144..9a1f8c2b1 100644 --- a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/__tests__/__snapshots__/SubModelTree.spec.tsx.snap +++ b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/__tests__/__snapshots__/SubModelTree.spec.tsx.snap @@ -51,6 +51,7 @@ exports[`SubModelTree should render appropriately based on the object 1`] = ` class="tm-tree-item-inner" >