Update extension.js
This commit is contained in:
parent
a6a22d1a0f
commit
4b5e5a6e4e
|
@ -27,14 +27,6 @@ class ErikrafTDropViewProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
getWebviewContent(webview) {
|
getWebviewContent(webview) {
|
||||||
const darkIconPath = webview.asWebviewUri(vscode.Uri.file(
|
|
||||||
path.join(this.extensionPath, 'images', 'icon2.svg')
|
|
||||||
));
|
|
||||||
const lightIconPath = webview.asWebviewUri(vscode.Uri.file(
|
|
||||||
path.join(this.extensionPath, 'images', 'icon2.svg')
|
|
||||||
));
|
|
||||||
const iconPath = path.join(this.extensionPath, 'images', 'icon2.svg');
|
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="pt-br">
|
<html lang="pt-br">
|
||||||
|
@ -54,40 +46,17 @@ class ErikrafTDropViewProvider {
|
||||||
iframe {
|
iframe {
|
||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 40px);
|
height: 100%;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 40px;
|
|
||||||
}
|
|
||||||
.icon-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
padding: 10px;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background-color: var(--vscode-editor-background);
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.icon-container img {
|
|
||||||
max-width: 80px;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="icon-container">
|
|
||||||
<picture>
|
|
||||||
<source srcset="${darkIconPath}" media="(prefers-color-scheme: dark)" />
|
|
||||||
<img src="${lightIconPath}" alt="ErikrafT Drop Icon" />
|
|
||||||
</picture>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src="https://drop.erikraft.com/"
|
src="https://drop.erikraft.com/"
|
||||||
width="390"
|
width="390"
|
||||||
|
|
Loading…
Reference in New Issue