mirror of
https://github.com/simon987/sist2.git
synced 2025-12-16 00:39:04 +00:00
CSS tweaks, fix #87
This commit is contained in:
@@ -392,7 +392,11 @@ function makeThumbnail(mimeCategory, hit, imgWrapper, small) {
|
||||
if (small) {
|
||||
thumbnail.setAttribute("class", "fit-sm");
|
||||
} else {
|
||||
thumbnail.setAttribute("class", "card-img-top fit");
|
||||
if (hit["_source"].hasOwnProperty("parent")) {
|
||||
thumbnail.setAttribute("class", "card-img-top fit img-padding");
|
||||
} else {
|
||||
thumbnail.setAttribute("class", "card-img-top fit");
|
||||
}
|
||||
}
|
||||
thumbnail.setAttribute("src", `t/${hit["_source"]["index"]}/${hit["_id"]}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user