From 4eec94d573ee0413fb2b2936a6ae633bd24cf0f3 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 6 Jul 2026 09:26:10 +0100 Subject: [PATCH 1/5] Remove complexity in gallery nav HTML --- webapp/src/assets/less/variables.less | 2 +- .../tabContentComponents/galleryContent.vue | 37 ++++++++----------- 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/webapp/src/assets/less/variables.less b/webapp/src/assets/less/variables.less index 24b2f2d8..78e8a5ea 100644 --- a/webapp/src/assets/less/variables.less +++ b/webapp/src/assets/less/variables.less @@ -222,7 +222,7 @@ border-width: 0 0 1px; border-style: solid; border-color: rgba(180, 180, 180, 0.25); - padding-right: 20px; + padding-right: 15px; background: #fff; } .hook-inverse() { diff --git a/webapp/src/components/tabContentComponents/galleryContent.vue b/webapp/src/components/tabContentComponents/galleryContent.vue index 58f81bf4..442edb50 100644 --- a/webapp/src/components/tabContentComponents/galleryContent.vue +++ b/webapp/src/components/tabContentComponents/galleryContent.vue @@ -4,26 +4,21 @@ @@ -270,7 +265,7 @@ export default { .gallery-button { margin-top: 5px; - margin-bottom: 2px; + margin-bottom: 5px; } .sidebar-toggle { From aa10d52487e382b0f6f6612e04cb6d7a9f9de11c Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 6 Jul 2026 09:34:15 +0100 Subject: [PATCH 2/5] right padding in gallery nav to match button gap at all screen sizes --- webapp/src/assets/less/variables.less | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/src/assets/less/variables.less b/webapp/src/assets/less/variables.less index 78e8a5ea..f7a499a4 100644 --- a/webapp/src/assets/less/variables.less +++ b/webapp/src/assets/less/variables.less @@ -225,6 +225,15 @@ padding-right: 15px; background: #fff; } + +// Make the gap increase for larger screens, this means that the right padding +// always matches the gap in uk-navbar-right +@media (width >= 960px) { + .ofm-tab-navbar { + padding-right: 30px; + } +} + .hook-inverse() { .ofm-tab-navbar { background: #252525; From 6b17a61d557dd199d1b706ef2ee843a35381c9a1 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 6 Jul 2026 10:01:34 +0100 Subject: [PATCH 3/5] Add thumbail only option to gallery card --- .../galleryComponents/galleryCard.vue | 142 +++++++++++------- 1 file changed, 84 insertions(+), 58 deletions(-) diff --git a/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue b/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue index f53e93be..0e010254 100644 --- a/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue +++ b/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue @@ -1,11 +1,14 @@ @@ -97,6 +104,11 @@ export default { type: Object, required: true, }, + thumbnailOnly: { + type: Boolean, + default: false, + required: false, + }, }, emits: ["viewer-requested", "update-requested"], @@ -210,6 +222,15 @@ ul { text-align: center; } +.thumbnail-only-card { + width: auto; +} + +.thumbnail-only-container { + height: 150px; + width: 150px; +} + .thumbnail-fit { max-height: 120px; max-width: 240px; @@ -217,6 +238,11 @@ ul { overflow-y: hidden; } +.thumbnail-fit.thumbnail-only { + max-height: 150px; + max-width: 150px; +} + .clickable { cursor: pointer; } From ba11f65219d020e55b41561c2222a9b6177a4460 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Tue, 7 Jul 2026 10:41:51 +0100 Subject: [PATCH 4/5] Update miniMenu to allow selector to be a button, and use for filtering the gallery --- webapp/src/assets/less/variables.less | 19 ++++++++ .../components/genericComponents/miniMenu.vue | 35 ++++++++++++-- .../tabContentComponents/galleryContent.vue | 47 ++++++++++++++----- 3 files changed, 85 insertions(+), 16 deletions(-) diff --git a/webapp/src/assets/less/variables.less b/webapp/src/assets/less/variables.less index f7a499a4..b7773df6 100644 --- a/webapp/src/assets/less/variables.less +++ b/webapp/src/assets/less/variables.less @@ -372,6 +372,25 @@ } } +.ofm-top-nav-button { + margin-top: 4px; + height: 38px; +} + +.ofm-top-nav-square-button { + margin-top: 4px; + height: 38px; + width: 38px; +} + +.ofm-top-nav-square-button.material-icon { + // MAterial icons are 24x24 , set padding to centre + padding: 6px !important; + margin-top: 4px; + height: 38px; + width: 38px; +} + // A button styled like text. For use in menus .ofm-text-button { display: block; diff --git a/webapp/src/components/genericComponents/miniMenu.vue b/webapp/src/components/genericComponents/miniMenu.vue index 07cf23f9..a57067e3 100644 --- a/webapp/src/components/genericComponents/miniMenu.vue +++ b/webapp/src/components/genericComponents/miniMenu.vue @@ -1,9 +1,21 @@ +
+
    +
  • + Not enough images to stitch +
  • +
  • + Interactive preview not available +
  • +
  • + High quality stitch not available +
  • +
+
@@ -231,6 +233,10 @@ ul { width: 150px; } +.thumbnail-only-warning { + width: 150px; +} + .thumbnail-fit { max-height: 120px; max-width: 240px;