Skip to content

Commit 77d15b5

Browse files
committed
Padding and border for tooltips
1 parent deb439e commit 77d15b5

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/web/TreeBrowser.tsx

+10-4
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,18 @@ export function TreeBrowser(props: {
172172
return (
173173
<div
174174
style={{
175-
width: rect.right - rect.left + 40,
176-
height: rect.layers * 40 + 40,
175+
background: theme.backgroundColor,
176+
width: rect.right - rect.left + 80,
177+
height: rect.layers * 40 + 80,
178+
padding: '40px',
177179
position: 'relative',
178180
}}
179181
>
180-
<div style={{ transform: 'translateX(' + (-rect.left + 40) + 'px)' }}>
182+
<div
183+
style={{
184+
transform: 'translateX(' + -rect.left + 'px)',
185+
}}
186+
>
181187
<Subtree
182188
width={rect.right - rect.left + 'px'}
183189
tree={placed}
@@ -197,7 +203,7 @@ export function TreeBrowser(props: {
197203
textAlign: 'center',
198204
transition: 'none',
199205
}}
200-
border="1px solid black"
206+
border={`1px solid ${theme.textColor}`}
201207
opacity="1"
202208
/>
203209
</div>

0 commit comments

Comments
 (0)