Skip to content

Commit

Permalink
Mess with alignment of line numbers in code
Browse files Browse the repository at this point in the history
  • Loading branch information
equationcrunchor committed Jul 5, 2019
1 parent f6d5a8c commit e621db1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions static/css/simulations.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ body {
.line_no_text {
vertical-align: center;
font-family: Courier, monospace;
float: right;
text-align: right;
}

#code {
Expand Down
2 changes: 1 addition & 1 deletion static/js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Renderer {
let element = $(`
<div class="row general_memory_row">
<div class="col-2">
<p class="text-right float-right line_no_text">${i.toString()}: </p>
<p class="line_no_text">${i.toString()}: </p>
</div>
<div class="col-10">
<span class="general_memory number" id="general_memory_${i.toString()}"
Expand Down
2 changes: 1 addition & 1 deletion templates/simulations/base.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h3>Code</h3>
<div class="pre-scrollable mb-2" id="code"> {# TODO: make sure this doesn't obscure the line numbers #}
<div id="code_heading" class="row">
<div class="col-sm-1 px-2">#</div>
<div class="col-sm-1 pl-3 pr-2 float-right text-right">#</div>
<div class="col-sm-3 px-2" >Lbl</div>
<div class="col-sm-3 px-2">Op</div>
<div class="col-sm-4 px-2">ATD</div>
Expand Down

0 comments on commit e621db1

Please sign in to comment.