🐛 Fix view modem forward button not working

This commit is contained in:
Alejandro Alonso 2025-01-24 10:40:45 +01:00
parent cf25614afb
commit cf53e0d233
6 changed files with 434 additions and 3 deletions

View file

@ -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

View file

@ -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)}