Bootstrap updates
This commit is contained in:
parent
0aeb071215
commit
bd8e349110
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8
src/core/static/js/react-ui-logic.js
vendored
8
src/core/static/js/react-ui-logic.js
vendored
@ -53,6 +53,10 @@ class FilesList extends React.Component {
|
|||||||
|
|
||||||
for (let file of files) {
|
for (let file of files) {
|
||||||
const name = file[0];
|
const name = file[0];
|
||||||
|
if (name == "000.jpg") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
const hash = file[1];
|
const hash = file[1];
|
||||||
const fsize = file[2];
|
const fsize = file[2];
|
||||||
let extension = re.exec( name.toLowerCase() )[1] ? name : "file.dir";
|
let extension = re.exec( name.toLowerCase() )[1] ? name : "file.dir";
|
||||||
@ -65,13 +69,13 @@ class FilesList extends React.Component {
|
|||||||
if (filetype === "video") {
|
if (filetype === "video") {
|
||||||
card_header = name;
|
card_header = name;
|
||||||
card_body = <React.Fragment>
|
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>
|
<span class="float-right">{fsize}</span>
|
||||||
</React.Fragment>;
|
</React.Fragment>;
|
||||||
} else if (filetype === "image") {
|
} else if (filetype === "image") {
|
||||||
card_header = name;
|
card_header = name;
|
||||||
card_body = <React.Fragment>
|
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>
|
<span class="float-right">{fsize}</span>
|
||||||
</React.Fragment>;
|
</React.Fragment>;
|
||||||
} else {
|
} else {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<input id="search-files-field" type="text" class="form-control"
|
<input id="search-files-field" type="text" class="form-control"
|
||||||
aria-label="Search..." placeholder="Search..." style="max-width: 260px">
|
aria-label="Search..." placeholder="Search..." style="max-width: 260px">
|
||||||
<div class="input-group-prepend">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user