Bootstrap updates

This commit is contained in:
itdominator 2022-10-08 19:57:45 -05:00
parent 0aeb071215
commit bd8e349110
4 changed files with 14 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,10 @@ class FilesList extends React.Component {
for (let file of files) {
const name = file[0];
if (name == "000.jpg") {
continue
}
const hash = file[1];
const fsize = file[2];
let extension = re.exec( name.toLowerCase() )[1] ? name : "file.dir";
@ -65,13 +69,13 @@ class FilesList extends React.Component {
if (filetype === "video") {
card_header = name;
card_body = <React.Fragment>
<img class="card-img-top" src={"static/imgs/thumbnails/" + hash + ".jpg"} alt={name} />
<img class="card-img-top" src={"static/imgs/thumbnails/" + hash + ".jpg?d=" + Date.now()} alt={name} />
<span class="float-right">{fsize}</span>
</React.Fragment>;
} else if (filetype === "image") {
card_header = name;
card_body = <React.Fragment>
<img class="card-img-top" src={"api/file-manager-action/files/" + hash} alt={name} />
<img class="card-img-top" src={"api/file-manager-action/files/" + hash + "?d=" + Date.now()} alt={name} />
<span class="float-right">{fsize}</span>
</React.Fragment>;
} else {

View File

@ -20,7 +20,7 @@
<input id="search-files-field" type="text" class="form-control"
aria-label="Search..." placeholder="Search..." style="max-width: 260px">
<div class="input-group-prepend">
<span id="clear-search-btn" class="input-group-text" title="Clears search...">X</span>
<button id="clear-search-btn" type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" title="Clears search..."></button>
</div>
</div>
</li>