From eeeaa9260a0bdf0d86da5884e07804eacc8043ce Mon Sep 17 00:00:00 2001 From: Miguel Astor Date: Sat, 19 Aug 2023 23:41:46 -0400 Subject: [PATCH] Hid page links when there is just one page. --- viewer/static/css/styles.css | 4 ++++ viewer/templates/gallery_view.html | 2 ++ 2 files changed, 6 insertions(+) diff --git a/viewer/static/css/styles.css b/viewer/static/css/styles.css index 330ec68..d48d2ca 100644 --- a/viewer/static/css/styles.css +++ b/viewer/static/css/styles.css @@ -16,6 +16,10 @@ height: 75vh; } +.fc { + width: fit-content; +} + /**************************************************************************** * Content. * ****************************************************************************/ diff --git a/viewer/templates/gallery_view.html b/viewer/templates/gallery_view.html index 09248dc..67a6f76 100644 --- a/viewer/templates/gallery_view.html +++ b/viewer/templates/gallery_view.html @@ -17,9 +17,11 @@
+ {% if num_pages > 1 %}
{% for page in pages %}{{page}}{% if not forloop.last %} {% endif %}{% endfor %}
+ {% endif %} {% if page != 1 %}