mirror of
https://github.com/simon987/sist2.git
synced 2025-04-17 17:26:48 +00:00
uifix
This commit is contained in:
parent
8d187926d9
commit
9778acda77
@ -194,12 +194,14 @@ function createDocCard(hit) {
|
|||||||
thumbnailOverlay.setAttribute("class", "card-img-overlay");
|
thumbnailOverlay.setAttribute("class", "card-img-overlay");
|
||||||
|
|
||||||
//Resolution
|
//Resolution
|
||||||
let resolutionBadge = document.createElement("span");
|
if (hit["_source"].hasOwnProperty("width") && hit["_source"]["width"] > 32 && hit["_source"]["height"] > 32) {
|
||||||
resolutionBadge.setAttribute("class", "badge badge-resolution");
|
let resolutionBadge = document.createElement("span");
|
||||||
if (hit["_source"].hasOwnProperty("width")) {
|
resolutionBadge.setAttribute("class", "badge badge-resolution");
|
||||||
resolutionBadge.appendChild(document.createTextNode(hit["_source"]["width"] + "x" + hit["_source"]["height"]));
|
if (hit["_source"].hasOwnProperty("width")) {
|
||||||
|
resolutionBadge.appendChild(document.createTextNode(hit["_source"]["width"] + "x" + hit["_source"]["height"]));
|
||||||
|
}
|
||||||
|
thumbnailOverlay.appendChild(resolutionBadge);
|
||||||
}
|
}
|
||||||
thumbnailOverlay.appendChild(resolutionBadge);
|
|
||||||
|
|
||||||
// Hover
|
// Hover
|
||||||
if (thumbnail && hit["_source"]["videoc"] === "gif") {
|
if (thumbnail && hit["_source"]["videoc"] === "gif") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user