mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
show message to refresh if scrolling is enabled and not scrollable
This commit is contained in:
@@ -27,6 +27,18 @@ function generateViewMoreElement(outputId: string) {
|
||||
container.appendChild(third);
|
||||
container.appendChild(forth);
|
||||
|
||||
const refreshSpan = document.createElement('span');
|
||||
refreshSpan.classList.add('scroll-refresh');
|
||||
const fifth = document.createElement('span');
|
||||
fifth.textContent = '. Refresh to view ';
|
||||
|
||||
const sixth = document.createElement('a');
|
||||
sixth.textContent = 'scrollable element';
|
||||
sixth.href = `command:cellOutput.enableScrolling?${outputId}`;
|
||||
refreshSpan.appendChild(fifth);
|
||||
refreshSpan.appendChild(sixth);
|
||||
container.appendChild(refreshSpan);
|
||||
|
||||
return container;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user