Browse Source

fix #1828 fix thumbnail display handling

Shinsuke Sugaya 6 years ago
parent
commit
44ab912c54
2 changed files with 5 additions and 2 deletions
  1. 3 1
      src/main/webapp/WEB-INF/view/searchResults.jsp
  2. 2 1
      src/main/webapp/css/style.css

+ 3 - 1
src/main/webapp/WEB-INF/view/searchResults.jsp

@@ -37,12 +37,14 @@
 				</h3>
 				<div class="body">
 					<c:if test="${thumbnailSupport && !empty doc.thumbnail}">
-						<a class="link mr-3 d-none d-sm-flex" href="${doc.url_link}" data-uri="${doc.url_link}" data-id="${doc.doc_id}"
+					<div class="mr-3">
+						<a class="link d-none d-sm-flex" href="${doc.url_link}" data-uri="${doc.url_link}" data-id="${doc.doc_id}"
 							data-order="${s.index}"
 						> <img src="${fe:url('/images/blank.png')}"
 							data-src="${fe:url('/thumbnail/')}?docId=${f:u(doc.doc_id)}&queryId=${f:u(queryId)}" class="thumbnail"
 						>
 						</a>
+					</div>
 					</c:if>
 					<div class="description">${doc.content_description}</div>
 				</div>

+ 2 - 1
src/main/webapp/css/style.css

@@ -130,6 +130,7 @@ h3 {
 
 #result .thumbnail {
 	width: 100px;
+	min-height: 30px;
 	background-position: 50% 50%;
 	background-repeat: no-repeat;
 }
@@ -154,4 +155,4 @@ h3 {
 		text-overflow: ellipsis;
 		white-space: nowrap;
 	}
-}
+}