mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 07:18:33 +02:00
🐛 Fix view modem forward button not working
This commit is contained in:
parent
cf25614afb
commit
cf53e0d233
6 changed files with 434 additions and 3 deletions
|
@ -414,7 +414,7 @@
|
|||
(when (< index (dec total))
|
||||
(rx/of
|
||||
(dcmt/close-thread)
|
||||
(rt/nav :viewer params (assoc params :index (inc index)))))))))
|
||||
(rt/nav :viewer (assoc params :index (inc index)))))))))
|
||||
|
||||
(def select-first-frame
|
||||
(ptk/reify ::select-first-frame
|
||||
|
|
|
@ -101,13 +101,15 @@
|
|||
(when (pos? index)
|
||||
[:button {:class (stl/css-case :viewer-go-prev true
|
||||
:left-bar left-bar)
|
||||
:on-click go-prev-frame}
|
||||
:on-click go-prev-frame
|
||||
:aria-label (tr "labels.previous")}
|
||||
i/arrow])
|
||||
(when (< (+ index 1) num-frames)
|
||||
[:button {:class (stl/css-case :viewer-go-next true
|
||||
:comment-sidebar comment-sidebar
|
||||
:right-bar right-bar)
|
||||
:on-click go-next-frame}
|
||||
:on-click go-next-frame
|
||||
:aria-label (tr "labels.next")}
|
||||
i/arrow])
|
||||
[:div {:class (stl/css-case :viewer-bottom true
|
||||
:left-bar left-bar)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue