Skip to content

Commit

Permalink
Upgrade tree component (firefox-devtools#4215)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster authored Sep 29, 2017
1 parent d1dddd3 commit 179582c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"babel-types": "^6.26.0",
"babylon": "^6.18.0",
"codemirror": "^5.28.0",
"devtools-components": "^0.0.2",
"devtools-components": "^0.0.5",
"devtools-launchpad": "^0.0.100",
"devtools-linters": "^0.0.3",
"devtools-reps": "^0.12.3",
Expand Down
6 changes: 6 additions & 0 deletions src/components/shared/ManagedTree.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
white-space: nowrap;
overflow: auto;
min-width: 100%;
--tree-indent-border-color: none;
--tree-indent-width: 0;
}

.managed-tree .tree:focus {
outline: none;
}

.managed-tree .tree button {
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/ManagedTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React, { createFactory, Component } from "react";
import "./ManagedTree.css";

import { Tree as _Tree } from "devtools-components";
const Tree = createFactory(_Tree);
import Components from "devtools-components";
const Tree = createFactory(Components.Tree);

export type Item = {
contents: any,
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2836,6 +2836,13 @@ devtools-components@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/devtools-components/-/devtools-components-0.0.2.tgz#4eb22cb5140e65741b00b79a7f76454ff56fa501"

devtools-components@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/devtools-components/-/devtools-components-0.0.5.tgz#1b0c1718a9c0b6e3415f05377f0e5093aef82d9f"
dependencies:
svg-inline-loader "^0.8.0"
svg-inline-react "^1.0.2"

devtools-config@^0.0.15:
version "0.0.15"
resolved "https://registry.yarnpkg.com/devtools-config/-/devtools-config-0.0.15.tgz#1fbe75be3f4dc1159603927fc1dfa64d1d9f1202"
Expand Down

0 comments on commit 179582c

Please sign in to comment.