From bb80637e725e5da37492034be8dcb090a386310b Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:35:02 +0000 Subject: [PATCH] Only hide comment count if there's a target URL --- internal/glance/static/main.css | 2 +- internal/glance/templates/forum-posts.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/glance/static/main.css b/internal/glance/static/main.css index 2a5db10..3037128 100644 --- a/internal/glance/static/main.css +++ b/internal/glance/static/main.css @@ -1038,7 +1038,7 @@ details[open] .summary::after { } @container widget (max-width: 550px) { - .forum-post-comment-count { + .forum-post-autohide { display: none; } diff --git a/internal/glance/templates/forum-posts.html b/internal/glance/templates/forum-posts.html index ebd6e00..5d09269 100644 --- a/internal/glance/templates/forum-posts.html +++ b/internal/glance/templates/forum-posts.html @@ -10,9 +10,9 @@ - {{- else if ne .ThumbnailUrl "" }} + {{- else if .ThumbnailUrl }} - {{- else if ne "" .TargetUrl }} + {{- else if .TargetUrl }} @@ -24,7 +24,7 @@ {{- end }}
{{ .Title }} - {{- if gt (len .Tags) 0 }} + {{- if .Tags }}