Skip to content

Commit 05f1712

Browse files
committed
tooltip text padding increase, max height with scroll
1 parent 2d0d4a9 commit 05f1712

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/app/components/Chart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as d3 from 'd3';
55
var root={};
66
let duration = 750;
77

8+
89
class Chart extends Component {
910
constructor(props) {
1011
super(props);
@@ -31,7 +32,6 @@ class Chart extends Component {
3132

3233
maked3Tree(){
3334
this.removed3Tree();
34-
3535
duration=0;
3636

3737
var margin = {top: 20, right: 120, bottom: 20, left: 120},

src/app/styles/components/_d3Tree.scss

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,14 @@
2929
div.tooltip {
3030
white-space: pre;
3131
position: absolute;
32-
// display: flex;
33-
// flex-direction: column;
34-
// flex-wrap: nowrap;
35-
// justify-content: center;
3632
overflow-y: scroll;
3733
overscroll-behavior: contain;
38-
// align-items: center;
3934
flex: auto;
40-
// min-height: 10vh;
41-
// min-width: 10vh;
42-
// max-height: 100px;
43-
// max-width: 50vh;
44-
// text-align: center;
45-
// width: 300px;
46-
// height: 100px;
47-
padding: 8px;
35+
max-height: 100px;
36+
padding: 15px;
4837
font: 15px sans-serif;
4938
color: black;
5039
background: #ffff;
5140
border: solid 1px #aaa;
5241
border-radius: 8px;
53-
// pointer-events: none;
5442
}

0 commit comments

Comments
 (0)