From ded2db48fcbbd341318b601bc71cf271e9102ef1 Mon Sep 17 00:00:00 2001 From: Evan Paterakis Date: Mon, 16 Oct 2023 22:35:20 +0300 Subject: [PATCH] fix(MediaViewer): page buttons (#608) --- data/ui/views/media_viewer.ui | 8 ++++---- src/Views/MediaViewer.vala | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/data/ui/views/media_viewer.ui b/data/ui/views/media_viewer.ui index 233fbefff..8dcf9fb0e 100644 --- a/data/ui/views/media_viewer.ui +++ b/data/ui/views/media_viewer.ui @@ -85,8 +85,8 @@ 0 end start - 18 - 18 + 18 + 18 horizontal @@ -127,8 +127,8 @@ 0 end end - 18 - 18 + 18 + 18 horizontal diff --git a/src/Views/MediaViewer.vala b/src/Views/MediaViewer.vala index 60c22acac..2215a8647 100644 --- a/src/Views/MediaViewer.vala +++ b/src/Views/MediaViewer.vala @@ -862,9 +862,8 @@ public class Tuba.Views.MediaViewer : Gtk.Widget, Gtk.Buildable, Adw.Swipeable { private void on_carousel_n_pages_changed () { bool has_more_than_1_item = carousel.n_pages > 1; + page_buttons_revealer.visible = has_more_than_1_item; carousel_dots.visible = has_more_than_1_item; - prev_btn.visible = has_more_than_1_item; - next_btn.visible = has_more_than_1_item; } public void on_zoom_change () {