▾ modified src/frq/app.jolt +8 -5 Viewed
@@ -237,11 +237,14 @@ 237 237 ;; The picture sits beside the name rather than beside the message: a 238 238 ;; run of lines from one person has one header, and this belongs to it. 239 239 [:hbox {:spacing 6} 240 - [:vbox {:key :avatar} 241 - ;; Reading the tick subscribes this row to the fetch finishing. 242 - (let [_ @s/media-tick] 243 - (when-let [path (avatars/path-when-ready (:actor m))] 244 - [:image {:src path :max-height 20}]))] 240 + ;; Always an avatar, picture or not: the initial stands in until the 241 + ;; fetch lands, and for the guests who have no profile at all, which 242 + ;; is what keeps the column of faces straight down the left. 243 + ;; Reading the tick subscribes this row to a fetch finishing. 244 + (let [_ @s/media-tick] 245 + [:avatar {:label (:from m) 246 + :src (or (avatars/path-when-ready (:actor m)) "") 247 + :size 22}]) 245 248 [:dim-label {:label (:from m)}]])] 246 249 [:vbox {:key :text :spacing 2} 247 250 (map-indexed (fn [j run] (run-node j run (:system? m)))
@@ -237,11 +237,14 @@ 237 ;; The picture sits beside the name rather than beside the message: a 237 ;; The picture sits beside the name rather than beside the message: a 238 ;; run of lines from one person has one header, and this belongs to it. 238 ;; run of lines from one person has one header, and this belongs to it. 239 [:hbox {:spacing 6} 239 [:hbox {:spacing 6} 240 - [:vbox {:key :avatar} 240 + ;; Always an avatar, picture or not: the initial stands in until the 241 - ;; Reading the tick subscribes this row to the fetch finishing. 241 + ;; fetch lands, and for the guests who have no profile at all, which 242 - (let [_ @s/media-tick] 242 + ;; is what keeps the column of faces straight down the left. 243 - (when-let [path (avatars/path-when-ready (:actor m))] 243 + ;; Reading the tick subscribes this row to a fetch finishing. 244 - [:image {:src path :max-height 20}]))] 244 + (let [_ @s/media-tick] 245 + [:avatar {:label (:from m) 246 + :src (or (avatars/path-when-ready (:actor m)) "") 247 + :size 22}]) 245 [:dim-label {:label (:from m)}]])] 248 [:dim-label {:label (:from m)}]])] 246 [:vbox {:key :text :spacing 2} 249 [:vbox {:key :text :spacing 2} 247 (map-indexed (fn [j run] (run-node j run (:system? m))) 250 (map-indexed (fn [j run] (run-node j run (:system? m)))