mirror of
https://github.com/simon987/sist2.git
synced 2025-04-20 18:56:49 +00:00
Fix #99
This commit is contained in:
parent
d5acbde42e
commit
bbc8282fbb
@ -229,6 +229,7 @@ a:hover, .btn:hover {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
margin: 0 auto 0;
|
margin: 0 auto 0;
|
||||||
|
width: auto;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -537,3 +538,7 @@ svg {
|
|||||||
.stat > .card-body {
|
.stat > .card-body {
|
||||||
padding: 0.7em 1.25em;
|
padding: 0.7em 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#modal-body > .img-wrapper {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
@ -417,3 +417,7 @@ mark {
|
|||||||
.stat > .card-body {
|
.stat > .card-body {
|
||||||
padding: 0.7em 1.25em;
|
padding: 0.7em 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#modal-body > .img-wrapper {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
@ -197,8 +197,15 @@ function infoButtonCb(hit) {
|
|||||||
getDocumentInfo(hit["_id"]).then(doc => {
|
getDocumentInfo(hit["_id"]).then(doc => {
|
||||||
$("#modal-title").text(doc["name"] + ext(hit));
|
$("#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>");
|
const tbody = $("<tbody>");
|
||||||
$("#modal-body").empty()
|
$("#modal-body").empty()
|
||||||
|
.append(imgWrapper)
|
||||||
.append($("<table class='table table-sm'>")
|
.append($("<table class='table table-sm'>")
|
||||||
.append($("<thead>")
|
.append($("<thead>")
|
||||||
.append($("<tr>")
|
.append($("<tr>")
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user