Skip to content

Commit

Permalink
Fix the previewer dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantvc committed Feb 1, 2024
1 parent 01c4c15 commit c136978
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vscode-avalonia/src/panels/WebPreviwerPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ export class WebPreviewerPanel {
<title>Web Previewer</title>
<style>
.background {display: flex; justify-content: center; background-size: 15px 15px; background-image: linear-gradient(to right, royalblue 0.1px, transparent 1px), linear-gradient(to bottom, royalblue 0.1px, transparent 1px);}
.preview {min-height: 100vh; min-width: 100vw;}
</style>
</head>
<body class="background">
<iframe class="preview" src="${url}" marginheight="0" marginwidth="0" frameborder="0"/>
<iframe class="preview" src="${url}" style="width:100%; height:100vh;" frameborder="0"/>
</body>
</html>`;
}
Expand Down

0 comments on commit c136978

Please sign in to comment.