From fc9d87d4aa86cf5335f8c6c2c3ef25ea4b7408d5 Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:24:05 +0100 Subject: [PATCH 1/7] add config option to hide thumbnail view --- .../iiif/extensions/config/ContentLeftPanel.ts | 2 ++ .../extensions/uv-av-extension/config/config.json | 1 + .../uv-openseadragon-extension/config/config.json | 1 + .../uv-contentleftpanel-module/ContentLeftPanel.ts | 11 +++++++++++ 4 files changed, 15 insertions(+) diff --git a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts index a7f2b46ae..ccf127dd7 100644 --- a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts @@ -31,6 +31,8 @@ type ContentLeftPanelOptions = ExpandPanelOptions & { galleryThumbLoadPadding: number; /** Width of the gallery thumbnail */ galleryThumbWidth: number; + /** Hide thumbnails tab */ + hideThumbsView: boolean; /** Height of the one column thumbnail */ oneColThumbHeight: number; /** Width of the one column thumbnail */ diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json index 0a31683f1..e434780da 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json @@ -71,6 +71,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": true, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json index 5b3eb2145..72f125bc0 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json @@ -75,6 +75,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": true, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts index ab58980f0..e5ae2d1c0 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts @@ -146,6 +146,9 @@ export class ContentLeftPanel extends LeftPanel { '' + this.content.thumbnails + "" ); this.$tabs.append(this.$thumbsButton); + if (this.config.options.hideThumbsView) { + this.$thumbsButton.hide(); + } this.$tabsContent = $('
'); this.$main.append(this.$tabsContent); @@ -646,6 +649,14 @@ export class ContentLeftPanel extends LeftPanel { false ); + const hideThumbsView = Bools.getBool( + this.config.options.hideThumbsView, + false + ); + if (hideThumbsView) { + return false; + } + const treeData: TreeNode | null = this.getTree(); if ( From 79b978fa9204c50949ced90f5d2c025797df1015 Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:24:34 +0100 Subject: [PATCH 2/7] Merge branch 'UniversalViewer:dev' into dev From 2fb970aa4aa2cde5edc40d2bc15330e1f0aa8332 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:25:25 +0000 Subject: [PATCH 3/7] Commit from GitHub Actions (Lint and Prettify code) --- .../modules/uv-contentleftpanel-module/ContentLeftPanel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts index e5ae2d1c0..a20b1f793 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts @@ -148,7 +148,7 @@ export class ContentLeftPanel extends LeftPanel { this.$tabs.append(this.$thumbsButton); if (this.config.options.hideThumbsView) { this.$thumbsButton.hide(); - } + } this.$tabsContent = $('
'); this.$main.append(this.$tabsContent); @@ -655,7 +655,7 @@ export class ContentLeftPanel extends LeftPanel { ); if (hideThumbsView) { return false; - } + } const treeData: TreeNode | null = this.getTree(); From 95d6d30b7237630df66fccf9485113f36a0b363d Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:26:02 +0100 Subject: [PATCH 4/7] set to false --- .../iiif/extensions/uv-av-extension/config/config.json | 2 +- .../extensions/uv-openseadragon-extension/config/config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json index e434780da..7138d17fb 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json @@ -71,7 +71,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, - "hideThumbsView": true, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json index 72f125bc0..174dedfef 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json @@ -75,7 +75,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, - "hideThumbsView": true, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, From 33d6f24dd7e9d90bcf0becf0701ec0fc7399193f Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:26:04 +0100 Subject: [PATCH 5/7] Merge branch 'dev' of https://github.com/Saira-A/universalviewer into dev From 21040bd2504e3860ffd0acce189014a0ad32a6e0 Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:15:17 +0100 Subject: [PATCH 6/7] update config --- manual/CONFIG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manual/CONFIG.md b/manual/CONFIG.md index a24a82d06..2bed7f417 100644 --- a/manual/CONFIG.md +++ b/manual/CONFIG.md @@ -358,6 +358,12 @@ Padding for loading gallery thumbnails. **Default**: `200` Width of the gallery thumbnail. +##### hideThumbsView + +**Type**: `boolean` +**Default**: `false` +Hides the thumbnails view within the left panel. + ##### oneColThumbHeight **Type**: `number` From 4aa8ce3f642555f49f8c84cf24a9f1ced610b14c Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Fri, 21 Aug 2026 17:55:51 +0100 Subject: [PATCH 7/7] edit config doc --- manual/CONFIG.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/manual/CONFIG.md b/manual/CONFIG.md index 2bed7f417..d369b6600 100644 --- a/manual/CONFIG.md +++ b/manual/CONFIG.md @@ -286,6 +286,38 @@ Width of the collapsed panel. _Repeated - edit in contentLeftPanel_. Determines if the panel is open. +#### contentLeftPanel + +##### expandFullEnabled + +**Type**: `boolean` +**Default**: `false` +Determines if expand full is enabled. + +##### panelAnimationDuration + +**Type**: `number` +**Default**: `250` +Determines the duration of the panel expand/collapse animation. + +##### panelCollapsedWidth + +**Type**: `number` +**Default**: `30` +Width of the collapsed panel. + +##### panelExpandedWidth + +**Type**: `number` +**Default**: `255` +Width of the collapsed panel. + +##### panelOpen + +**Type**: `boolean` +**Default**: `false` +Determines if the panel is open. + ##### autoExpandTreeEnabled **Type**: `boolean`