diff --git a/src/main/frontend/components/icon.cljs b/src/main/frontend/components/icon.cljs index 3a7e44a677..441859c25b 100644 --- a/src/main/frontend/components/icon.cljs +++ b/src/main/frontend/components/icon.cljs @@ -1865,61 +1865,87 @@ (rum/local nil ::images) (rum/local true ::loading?) (rum/local nil ::current-query) + ;; Generation counter — responses whose id no longer matches are stale + ;; (e.g. a "do" prefix response arriving after "donald trump" was issued) + ;; and must not overwrite the current images. + (rum/local 0 ::request-id) {:did-mount (fn [state] (let [[{:keys [query]}] (:rum/args state) *images (::images state) *loading? (::loading? state) - *current-query (::current-query state)] + *current-query (::current-query state) + *request-id (::request-id state)] (when-not (string/blank? query) (reset! *current-query query) (reset! *loading? true) - (-> ( ( ( ( * { + border-radius: 50%; + } } /* Bordered tooltip arrow - CSS-positioned (Base UI technique) */