diff --git a/CHANGES.md b/CHANGES.md index cfa2e1c95..2685712be 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,7 +23,7 @@ - Fix duplicate page with component over frame [Taiga #8151](https://tree.taiga.io/project/penpot/issue/8151) and [Taiga #9698](https://tree.taiga.io/project/penpot/issue/9698) - The plugin list in the navigation menu lacks scrolling, some plugins are not visible when a large number are installed [Taiga #9360](https://tree.taiga.io/project/penpot/us/9360) - Fix hidden toolbar click event still available [Taiga #10437](https://tree.taiga.io/project/penpot/us/10437) - +- Fix hovering over templates [Taiga #10545](https://tree.taiga.io/project/penpot/issue/10545) ## 2.5.4 diff --git a/frontend/src/app/main/ui/dashboard/templates.cljs b/frontend/src/app/main/ui/dashboard/templates.cljs index ae2df1b08..ac4a62512 100644 --- a/frontend/src/app/main/ui/dashboard/templates.cljs +++ b/frontend/src/app/main/ui/dashboard/templates.cljs @@ -112,16 +112,16 @@ (dom/stop-propagation event) (on-import item event))))] - [:a {:class (stl/css :card-container) - :tab-index (if (or (not is-visible) collapsed) "-1" "0") - :id id - :data-index index - :on-click on-click - :on-mouse-down dom/prevent-default - :on-mouse-enter #(reset! hover? true) - :on-mouse-leave #(reset! hover? false) - :on-key-down on-key-down} - [:div {:class (stl/css :template-card)} + [:div {:class (stl/css :card-container) + :tab-index (if (or (not is-visible) collapsed) "-1" "0") + :id id + :data-index index} + [:a {:class (stl/css :template-card) + :on-click on-click + :on-mouse-down dom/prevent-default + :on-mouse-enter #(reset! hover? true) + :on-mouse-leave #(reset! hover? false) + :on-key-down on-key-down} [:div {:class (stl/css :img-container)} [:img {:src (dm/str thb) :alt (:name item)