show message to refresh if scrolling is enabled and not scrollable

This commit is contained in:
aamunger
2023-03-17 15:39:36 -07:00
parent 268fdba687
commit a0a6fd1a35
3 changed files with 38 additions and 0 deletions

View File

@@ -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;
}