File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,10 @@ export class DataTipManager {
425
425
position : Point ,
426
426
view : ViewContainer
427
427
) : CompositeDisposable | null {
428
- const element = view . element as HTMLElement
428
+ const element = document . createElement ( "div" )
429
+ element . className = "datatip-border"
430
+
431
+ element . appendChild ( view . element as HTMLElement )
429
432
430
433
// TODO do we need this?
431
434
if ( ! element ) {
Original file line number Diff line number Diff line change 1
1
@import " ui-variables" ;
2
2
@import " syntax-variables" ;
3
3
4
+ // .datatip-overlay {
5
+ // }
6
+
7
+ .datatip-border {
8
+ background : @overlay-background-color ;
9
+ padding : 10px ;
10
+ }
11
+
4
12
.datatip-element {
13
+ .datatip-responsive-effect ();
14
+
5
15
overflow : auto ; // prevents the long text to come out of the datatip
6
16
color : @syntax-text-color ;
7
17
white-space : nowrap ;
38
48
width : auto ;
39
49
}
40
50
41
- .datatip-overlay {
51
+ .datatip-responsive-effect () {
52
+ margin-left : 5px ;
42
53
// info border
43
- border-bottom : 5px solid @background-color-highlight ;
54
+ border-left : 5px solid @background-color-highlight ;
44
55
border-radius : 3px ;
45
56
46
57
// info bar glow
47
- transition : border- bottom - color 0.15s ease ;
58
+ transition : border- left - color 0.15s ease ;
48
59
& :hover {
49
- border-bottom -color : lighten (@background-color-highlight , 10% );
60
+ border-left -color : lighten (@background-color-highlight , 10% );
50
61
}
51
62
}
52
63
You can’t perform that action at this time.
0 commit comments