Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inject webview-events.js script into preview html #5766

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
48 changes: 48 additions & 0 deletions extensions/positron-proxy/resources/scripts_preview.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<!--
Style elements must be in the form:
<style id="identifier">
...
</style>
-->
<style id="preview-style-defaults">
body {
/* Set the background to white like the default in a web browser */
background: white;
}
</style>
<style id="preview-style-overrides">
::-webkit-scrollbar {
background: transparent;
width: 14px;
height: 14px;
cursor: default !important;
}

::-webkit-scrollbar-track {
opacity: 0;
}

::-webkit-scrollbar-thumb {
min-height: 20px;
background-color: var(--vscode-scrollbarSlider-background);
}

::-webkit-scrollbar-thumb:hover {
cursor: pointer !important;
background-color: var(--vscode-scrollbarSlider-hoverBackground);
}
</style>
<!--
Script elements must be in the form:
<script id="identifier" type="module">
...
</script>
-->
<script id="preview-script" type="module">// webviewEventsScript placeholder</script>
</head>

<body></body>
</html>
Loading
Loading