From caae1e2119594dee17803c8c80eee0daa375c22a Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 7 Jul 2026 11:31:57 +0800 Subject: [PATCH] hide screenshot thumbnail navigation if screenshot less than 2 --- catalog-app/listing/listing.gts | 6 +++++- .../FieldListing/3b0b52b0-84dc-4fe9-9edb-1610728642f3.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/catalog-app/listing/listing.gts b/catalog-app/listing/listing.gts index 9020d819..0b2bcebb 100644 --- a/catalog-app/listing/listing.gts +++ b/catalog-app/listing/listing.gts @@ -153,6 +153,10 @@ class EmbeddedTemplate extends Component { return this.images.length > 0; } + get hasMultipleImages() { + return this.images.length > 1; + } + get hasExamples() { return Boolean(this.args.model.examples?.length); } @@ -299,7 +303,7 @@ class EmbeddedTemplate extends Component { - {{#if this.hasImages}} + {{#if this.hasMultipleImages}}
{{#each this.images as |shot index|}}