Skip to content

Commit be70a7f

Browse files
author
Andreas Gerlach
committed
fix: datatip overlay size
1 parent e23f9fc commit be70a7f

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

lib/datatip-manager.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,8 @@ module.exports = class DatatipManager {
348348
invalidate: 'never',
349349
});
350350

351-
// if there is an overlay already on the same position, skip showing the data tip
352-
const decorations = editor.getOverlayDecorations({
353-
type: 'overlay'
354-
}).filter((decoration) => {
351+
// if there is an overlay already on the same position, skip showing the data tip
352+
const decorations = editor.getOverlayDecorations().filter((decoration) => {
355353
const decorationMarker = decoration.getMarker();
356354
if (decorationMarker.compare(highlightMarker) == 1) {
357355
return decoration;

styles/atom-ide-datatips-marked.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
color: @syntax-text-color;
1010
font-family: var(--editor-font-family);
1111
font-size: var(--editor-font-size);
12-
max-height: 24em;
12+
max-height: 48em;
1313
max-width: 64em;
1414
overflow: auto;
1515
white-space: normal;

styles/atom-ide-datatips.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
position: relative;
1111
white-space: normal;
1212
pointer-events: all;
13-
max-height: 24em;
13+
max-height: 48em;
1414
max-width: 64em;
1515
overflow: none;
1616

@@ -23,7 +23,7 @@
2323
}
2424

2525
.datatip-overlay {
26-
z-index: 4 !important; // HACK: exceed the z-index of
26+
z-index: 12 !important; // HACK: exceed the z-index of
2727
// .atom-dock-resize-handle-resizable, so that
2828
// mouseleaves aren't triggered when the cursor enters
2929
// the resizable
@@ -33,7 +33,7 @@
3333
background-color: @syntax-background-color;
3434
display: flex;
3535
position: relative;
36-
max-height: 24em;
36+
max-height: 48em;
3737
max-width: 64em;
3838
transition: background-color 0.15s ease;
3939
padding: 8px;

0 commit comments

Comments
 (0)