Skip to content

Commit f3409f1

Browse files
committed
fix for dom renderer an deserialized terms
1 parent ecb3c4c commit f3409f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/runtime/console.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function activate (_ink) {
158158
item.attachCustomKeyEventHandler((e) => handleKeybinding(e, item))
159159
addLinkHandler(item.terminal)
160160
item.onDidOpenLink(hasKeyboardModifier)
161+
item.registerTooltipHandler(showTooltip, hideTooltip)
161162
shellPty(item.persistentState.cwd)
162163
.then(({pty, cwd}) => item.attach(pty, true, cwd))
163164
.catch(() => {})
@@ -289,7 +290,7 @@ function showTooltip (event, uri, location, terminal) {
289290
let el = document.createElement('div')
290291
el.classList.add('terminal-link-tooltip')
291292

292-
const terminalRect = event.target.getBoundingClientRect()
293+
const terminalRect = terminal.element.getBoundingClientRect()
293294
const colWidth = terminalRect.width / terminal.cols
294295
const rowHeight = terminalRect.height / terminal.rows
295296

styles/julia-client.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,5 @@ atom-text-editor.editor[data-grammar$="source weave latex"] {
189189
background-color: @app-background-color;
190190
padding: 0.2em 0.5em;
191191
position: absolute;
192+
border: 1px solid fade(@text-color, 70%);
192193
}

0 commit comments

Comments
 (0)