Skip to content

Commit

Permalink
fix: use a script for version styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Oct 24, 2021
1 parent 5790e11 commit 614ba78
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/templates/_version.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</div>

<% if (data.NODE_ENV === 'development'){ %>
<style>
<script>
const styleElement = document.createElement("style");
styleElement.innerText = /* css */ `
.build-info {
z-index: 9999;
position: fixed;
Expand Down Expand Up @@ -37,6 +39,7 @@
.build-info:hover {
width: initial;
overflow: auto;
}
</style>
}`;
document.head.appendChild(styleElement);
</script>
<% } %>

0 comments on commit 614ba78

Please sign in to comment.