cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 3d64448ecde5fa401b6d1da365b90fbd696cf997
parent 9dccd235fc90a80bb01a78d4baea815157e04d2d
Author: Daniel Barlow <dan@telent.net>
Date:   Fri,  8 Aug 2025 21:08:53 +0100

fix (/ 0) bug in topic rendering when only one topic

Diffstat:
Mmain.fnl | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/main.fnl b/main.fnl @@ -131,9 +131,12 @@ img.floated { width: 40%%; float: right; border: 1px #555 solid; background-colo (accumulate [[min max] [99999 0] _ [count topic] (pairs topics)] [(math.min min count) (math.max max count)]) - scale (fn [c] - (+ 15 - (math.floor (* c (/ (- 24.0 12) (- max min))))))] + scale + (if (= min max) + #16 + (fn [c] + (+ 15 + (math.floor (* c (/ (- 24.0 12) (- max min)))))))] [:div [:h2 "Buzzwords"] (doto