Skip to content

Commit

Permalink
Stable placeholder gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Aug 26, 2024
1 parent 9f1513f commit 797f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
[capacity-gauge {:capacity #_(rand) (/ (or signup-count 0) (max capacity 1))
:image (if image
(str "url(" image ")")
(str "var(--gradient-" (inc (rand-int 7)) ")"))
(str "var(--gradient-" (inc (mod (:db/id session) 7)) ")"))
:checked? (session/participating? session user)}]))

(defn fmt-dur [dur-str]
Expand Down

0 comments on commit 797f7e4

Please sign in to comment.