all repos — honk @ e0ecdc6bfa3d93efd90876c49ee008c8717e9448

my fork of honk

try using smaller images, with links
Ted Unangst tedu@tedunangst.com
Tue, 30 Jan 2024 17:39:49 -0500
commit

e0ecdc6bfa3d93efd90876c49ee008c8717e9448

parent

4d093be7f9877158129b4a6fd2dd0e2beb830502

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M views/honk.htmlviews/honk.html

@@ -72,7 +72,7 @@ {{ else }}

{{ if $omitimages }} <p><a href="/d/{{ .XID }}">Image: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} {{ else }} -<p><img src="/d/{{ .XID }}" loading=lazy title="{{ .Desc }}" alt="{{ .Desc }}"> +<a href="/d/{{.XID}}"><img class="donk" src="/d/{{ .XID }}" loading=lazy title="{{ .Desc }}" alt="{{ .Desc }}"></a> {{ end }} {{ end }} {{ else }}
M views/style.cssviews/style.css

@@ -369,6 +369,10 @@ }

details summary { outline: none; } + .noise img.donk { + max-height: 100px; + display: inline; + } } @media print { #topmenu, #topspacer, #infobox, #refreshbox, .actions {