Skip to content

Commit 4f1a630

Browse files
authored
Format error messages (#737)
Currently error messages display on a single line that can be difficult to scroll. This updates the CSS slightly to allow the message to spread over multiple lines if needed.
1 parent 7432299 commit 4f1a630

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pywb/static/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ header .language-select a:hover {
3939
text-decoration: underline;
4040
}
4141

42+
.error pre {
43+
white-space: pre-wrap;
44+
text-align: left;
45+
}

pywb/templates/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "base.html" %}
22
{% block title %}{{ _('Pywb Error') }}{% endblock %}
33
{% block body %}
4-
<div class="container text-danger">
4+
<div class="container text-danger error">
55
<div class="row justify-content-center">
66
<h2 class="display-2">Pywb Error</h2>
77
</div>

0 commit comments

Comments
 (0)