From d72e317896bcc2a675d21cec6f286e0b2730d77c Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 10 Sep 2020 19:58:41 +0200 Subject: viewer: limit + show more tags github: resolves #184 --- example/config.json | 3 ++- viewer/src/@types/gallery.d.ts | 1 + viewer/src/components/LdProposition.vue | 40 +++++++++++++++++++++++++++++---- viewer/src/locales/en.json | 3 ++- viewer/src/plugins/fontawesome-icons.ts | 1 + 5 files changed, 42 insertions(+), 6 deletions(-) diff --git a/example/config.json b/example/config.json index 6483257..cec359c 100644 --- a/example/config.json +++ b/example/config.json @@ -1,3 +1,4 @@ { - "galleryRoot": "out/" + "galleryRoot": "out/", + "initialTagDisplayLimit": 10, } diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 1342ff9..56feff0 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -20,6 +20,7 @@ declare namespace Gallery { interface Config { galleryRoot: string; + initialTagDisplayLimit: number; } interface GalleryProperties { diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index 97f47da..e19e01a 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue @@ -47,11 +47,14 @@