Merge pull request #57 from robrobinbin/master

Improve support for text-only browsers
This commit is contained in:
Spike 2021-01-16 10:49:41 -08:00 committed by GitHub
commit ab102ca32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View File

@ -388,6 +388,10 @@ a.search_subreddit:hover {
/* Post */ /* Post */
.sep {
display: none;
}
.thread { .thread {
word-break: break-word; word-break: break-word;
} }

View File

@ -98,11 +98,11 @@
<div class="thread"> <div class="thread">
<!-- EACH COMMENT --> <!-- EACH COMMENT -->
{% call comment(c) %} {% call comment(c) %}
<div class="replies">{% for reply1 in c.replies %}{% call comment(reply1) %} <blockquote class="replies">{% for reply1 in c.replies %}{% call comment(reply1) %}
<!-- FIRST-LEVEL REPLIES --> <!-- FIRST-LEVEL REPLIES -->
<div class="replies">{% for reply2 in reply1.replies %}{% call comment(reply2) %} <blockquote class="replies">{% for reply2 in reply1.replies %}{% call comment(reply2) %}
<!-- SECOND-LEVEL REPLIES --> <!-- SECOND-LEVEL REPLIES -->
<div class="replies">{% for reply3 in reply2.replies %}{% call comment(reply3) %} <blockquote class="replies">{% for reply3 in reply2.replies %}{% call comment(reply3) %}
<!-- THIRD-LEVEL REPLIES --> <!-- THIRD-LEVEL REPLIES -->
{% if reply3.replies.len() > 0 %} {% if reply3.replies.len() > 0 %}
<!-- LINK TO CONTINUE REPLIES --> <!-- LINK TO CONTINUE REPLIES -->
@ -110,11 +110,11 @@
{% endif %} {% endif %}
{% call close() %} {% call close() %}
{% endfor %} {% endfor %}
</div>{% call close() %} </blockquote>{% call close() %}
{% endfor %} {% endfor %}
</div>{% call close() %} </blockquote>{% call close() %}
{% endfor %} {% endfor %}
</div>{% call close() %} </blockquote>{% call close() %}
</div> </div>
{%- endfor %} {%- endfor %}

View File

@ -31,6 +31,7 @@
<div id="posts"> <div id="posts">
{% for post in posts %} {% for post in posts %}
{% if !(post.flags.nsfw && prefs.hide_nsfw == "on") %} {% if !(post.flags.nsfw && prefs.hide_nsfw == "on") %}
<hr class="sep" />
<div class="post {% if post.flags.stickied %}stickied{% endif %} {% if prefs.layout == "card" && post.post_type == "image" %}card_post{% endif %}"> <div class="post {% if post.flags.stickied %}stickied{% endif %} {% if prefs.layout == "card" && post.post_type == "image" %}card_post{% endif %}">
<div class="post_left"> <div class="post_left">
<p class="post_score">{{ post.score }}</p> <p class="post_score">{{ post.score }}</p>