Skip to content

Commit

Permalink
Use monospace font in textarea's
Browse files Browse the repository at this point in the history
This commit makes the textareas (notably, when adding a pasta) use
monospace font (which is in line with other pastebin services and
arguably what the user wants/expects).
  • Loading branch information
egor-tensin committed May 2, 2023
1 parent b6841a5 commit 833454b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h4>
</h4>
<label>Content</label>
<br>
<textarea style="width: 100%; min-height: 100px" name="content" id="content" autofocus>{{ pasta.content }}</textarea>
<textarea style="width: 100%; min-height: 100px; font-family: monospace;" name="content" id="content" autofocus>{{ pasta.content }}</textarea>
<br>

{% if args.readonly %}
Expand Down
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
</div>
</div>
<label>Content</label>
<textarea style="width: 100%; min-height: 100px; margin-bottom: 2em" name="content" autofocus></textarea>
<textarea style="width: 100%; min-height: 100px; margin-bottom: 2em; font-family: monospace;" name="content" autofocus></textarea>
<div style="overflow:auto;">
{% if !args.no_file_upload %}
<div style="float: left">
Expand Down Expand Up @@ -252,4 +252,4 @@
}
</style>

{% include "footer.html" %}
{% include "footer.html" %}

0 comments on commit 833454b

Please # to comment.