Skip to content

Commit

Permalink
collapse comment by clicking on indent line
Browse files Browse the repository at this point in the history
  • Loading branch information
DokterKaj committed Oct 14, 2024
1 parent 3ff907d commit 840907a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,7 @@ a.search_subreddit:hover {
margin: 10px 0;
border-radius: 5px;
display: flex;
position: relative;
}

.comment img {
Expand Down Expand Up @@ -1459,6 +1460,18 @@ a.search_subreddit:hover {
flex: 0 1 auto;
}

.comment_indent {
position: absolute; /* relative to .comment */
left: 15px;
width: 20px;
top: 45px;
height: calc(100% - 45px);
}

.comment:has(> .comment_right > .comment_data > .comment_indent:hover) > .comment_left * {
background: var(--highlighted);
}

.comment_image {
max-width: 500px;
align-self: center;
Expand Down
1 change: 1 addition & 0 deletions templates/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</span>
{% endfor %}
{% endif %}
<div class="comment_indent"></div>
</summary>
{% if is_filtered %}
<div class="comment_body_filtered {% if highlighted %}highlighted{% endif %}">(Filtered content)</div>
Expand Down

0 comments on commit 840907a

Please sign in to comment.