This commit is contained in:
simon987 2020-08-25 13:57:22 -04:00
parent d5acbde42e
commit bbc8282fbb
4 changed files with 19 additions and 3 deletions

View File

@ -229,6 +229,7 @@ a:hover, .btn:hover {
max-width: 100%;
max-height: 400px;
margin: 0 auto 0;
width: auto;
height: auto;
}
@ -537,3 +538,7 @@ svg {
.stat > .card-body {
padding: 0.7em 1.25em;
}
#modal-body > .img-wrapper {
margin-bottom: 1em;
}

View File

@ -417,3 +417,7 @@ mark {
.stat > .card-body {
padding: 0.7em 1.25em;
}
#modal-body > .img-wrapper {
margin-bottom: 1em;
}

View File

@ -197,8 +197,15 @@ function infoButtonCb(hit) {
getDocumentInfo(hit["_id"]).then(doc => {
$("#modal-title").text(doc["name"] + ext(hit));
const mimeCategory = doc["mime"].split("/")[0];
const imgWrapper = document.createElement("div");
imgWrapper.setAttribute("style", "position: relative");
imgWrapper.setAttribute("class", "img-wrapper");
makeThumbnail(mimeCategory, hit, imgWrapper, false);
const tbody = $("<tbody>");
$("#modal-body").empty()
.append(imgWrapper)
.append($("<table class='table table-sm'>")
.append($("<thead>")
.append($("<tr>")

File diff suppressed because one or more lines are too long