diff --git a/src/ui/infinityPreview.ts b/src/ui/infinityPreview.ts index 760e333..cc52f98 100644 --- a/src/ui/infinityPreview.ts +++ b/src/ui/infinityPreview.ts @@ -123,7 +123,7 @@ export class InfinityPreview extends Disposable { }; const display = syntaxHighlight(obj); - let html: string = ` + const html: string = ` @@ -150,10 +150,50 @@ export class InfinityPreview extends Disposable { .key { color: white; } + .panel { + position: fixed; + right: 0; + top: 30%; + display: flex; + background: #34ebb1; + color: black; + width: 50px; + justify-content: center; + align-items: center; + flex-direction: column; + } + button { + background: none; + border: none; + border-radius: 100%; + display: flex; + align-items: center; + justify-content: center; + transition: 0.2s; + } + Infinity viewer +
+ + 100% + +

${path.basename(this.resource.path)}

`; - this.webviewEditor.webview.html = `${html}
${display}
`;
+    this.webviewEditor.webview.html = `${html}
${display}
`;
   }
 }