Skip to content

Commit

Permalink
enhance: use lazy loader on whiteboards preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Jan 31, 2023
1 parent 2043f3a commit e752f72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/components/whiteboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@
[:div (get-page-human-update-time page-name)]
[:div.flex-1]
(references-count page-name nil {:hover? true})]]
[:div.p-4.h-64.flex.justify-center
(tldraw-preview page-name)]])
(ui/lazy-visible
(fn [] [:div.p-4.h-64.flex.justify-center
(tldraw-preview page-name)]))])

(rum/defc dashboard-create-card
[]
Expand Down

0 comments on commit e752f72

Please sign in to comment.