Skip to content

Commit e236e64

Browse files
committed
Fix output container margin
1 parent a467aa6 commit e236e64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ShaderPlayground.Web/wwwroot/js/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ $(function () {
901901
} else {
902902
// An error occured, allow for coloring of ansi error output
903903
// Even if an error didn't occur, there's no language so CodeMirror will struggle
904-
outputContainerDiv.innerHTML = "<pre>" + (new AnsiUp()).ansi_to_html(output.value || "") + "</pre>";
904+
outputContainerDiv.innerHTML = "<pre style=\"margin:0;\">" + (new AnsiUp()).ansi_to_html(output.value || "") + "</pre>";
905905
}
906906
break;
907907
}

src/ShaderPlayground.Web/wwwroot/js/site.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ $(function () {
901901
} else {
902902
// An error occured, allow for coloring of ansi error output
903903
// Even if an error didn't occur, there's no language so CodeMirror will struggle
904-
outputContainerDiv.innerHTML = "<pre>" + (new AnsiUp()).ansi_to_html(output.value || "") + "</pre>";
904+
outputContainerDiv.innerHTML = "<pre style=\"margin:0;\">" + (new AnsiUp()).ansi_to_html(output.value || "") + "</pre>";
905905
}
906906
break;
907907
}

0 commit comments

Comments
 (0)