🏡 index : ~doyle/bin.git

author Egor Tensin <egor@tensin.name> 2023-12-24 1:00:44.0 +01:00:00
committer jordan <jordan@doyle.la> 2023-12-24 8:01:10.0 +00:00:00
commit
6e29e2578d4bc5c2eef3adc771771b7f3f66eba8 [patch]
tree
412cb2c769eed465064cbbbd4bf07153aaa7cb22
parent
8dd038bc60fefdcaa4d9f67f78f25f46df111ab2
download
6e29e2578d4bc5c2eef3adc771771b7f3f66eba8.tar.gz

Same line height on paste submission & view

The line-height on the paste submission form & the paste display page is
currently effectively different (due to <code>::before padding-bottom).
This commit makes the line height uniform on both pages (leaning towards
a higher value for better readability).

Diff

 templates/base.html  | 2 +-
 templates/paste.html | 4 +++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index 324c58c..ca4c273 100644
--- a/templates/base.html
+++ a/templates/base.html
@@ -13,7 +13,7 @@
            padding: 2rem;
            background: #263238;
            color: #B0BEC5;
            line-height: 1.1;
            line-height: 1.4;
            display: flex;
        }
        body, code, textarea { font-family: monospace; }
diff --git a/templates/paste.html b/templates/paste.html
index e7d9815..ccdc93d 100644
--- a/templates/paste.html
+++ a/templates/paste.html
@@ -18,7 +18,7 @@
        content: counter(line);
        display: inline-block;
        width: 2em; /* Fixed width */
        padding: 0 1em 0.3em 0;
        padding: 0 1em 0 0;
        margin-right: .5em;
        color: #888;
        -webkit-user-select: none;
@@ -29,4 +29,4 @@
    <link rel="stylesheet" type="text/css" href="highlight.css" />
{% endblock head %}

{% block content %}<pre>{{ content|safe }}</pre>{% endblock content %}
{% block content %}<pre>{{ content|safe }}</pre>{% endblock content %}