From c06de5ff1fb85667a2d5fdf88d9049beaed8b4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Lindo?= Date: Fri, 15 Nov 2024 14:13:09 +0000 Subject: [PATCH] updated viewer width --- .../databasepreservation/common/api/v1/DatabaseResource.java | 4 ++++ .../resources/com/databasepreservation/common/public/main.css | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/databasepreservation/common/api/v1/DatabaseResource.java b/src/main/java/com/databasepreservation/common/api/v1/DatabaseResource.java index cc124d58..5377db7d 100644 --- a/src/main/java/com/databasepreservation/common/api/v1/DatabaseResource.java +++ b/src/main/java/com/databasepreservation/common/api/v1/DatabaseResource.java @@ -206,6 +206,10 @@ private IndexResult getCrossViewerDatabaseIndexResult(FindReques } } + if (collections.isEmpty()) { + return new IndexResult<>(); + } + String collectionAlias = SolrUtils.createSearchAllAlias(ViewerFactory.getSolrClient(), "alias-" + UUID.randomUUID(), collections); diff --git a/src/main/resources/com/databasepreservation/common/public/main.css b/src/main/resources/com/databasepreservation/common/public/main.css index ed0d8e0e..624dbd86 100644 --- a/src/main/resources/com/databasepreservation/common/public/main.css +++ b/src/main/resources/com/databasepreservation/common/public/main.css @@ -3470,7 +3470,7 @@ rgba(0, 0, 0, .125); .embedded-viewer{ height: 150vh; - width: 67vw; + width: 70vw; display: inline-block; vertical-align: top; margin-top: 30px;