fix regression in draggable boot order list drag image,
update Sortable.js, fix mising icons in boot order list
This commit is contained in:
@@ -38,6 +38,10 @@ var MimeTypes = map[string]MimeType{
|
||||
Type: "image/svg+xml",
|
||||
Minifier: svg.Minify,
|
||||
},
|
||||
"png": {
|
||||
Type: "image/png",
|
||||
Minifier: nil,
|
||||
},
|
||||
"js": {
|
||||
Type: "application/javascript",
|
||||
Minifier: js.Minify,
|
||||
@@ -75,6 +79,10 @@ var MimeTypes = map[string]MimeType{
|
||||
Type: "image/svg+xml",
|
||||
Minifier: nil,
|
||||
},
|
||||
"png": {
|
||||
Type: "image/png",
|
||||
Minifier: nil,
|
||||
},
|
||||
"js": {
|
||||
Type: "application/javascript",
|
||||
Minifier: nil,
|
||||
|
||||
BIN
web/images/common/blank.png
Normal file
BIN
web/images/common/blank.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 B |
4
web/modules/Sortable.min.js
vendored
4
web/modules/Sortable.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
||||
const blank = document.createElement("img");
|
||||
blank.src = "images/common/blank.png"; // for whatever reason an svg does NOT work here
|
||||
|
||||
class DraggableContainer extends HTMLElement {
|
||||
shadowRoot = null;
|
||||
|
||||
@@ -537,15 +537,15 @@
|
||||
{{define "boot-target"}}
|
||||
{{if .volume_id}}
|
||||
<div class="draggable-item" data-value="{{.volume_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
||||
<img alt="Drag" src="images/actions/drag.svg#symb">
|
||||
<img alt="Volume" src="images/resources/drive.svg#symb">
|
||||
<img style="height: 1em; width: 1em" alt="Drag" src="images/actions/drag.svg#symb">
|
||||
<img style="height: 1em; width: 1em" alt="Volume" src="images/resources/drive.svg#symb">
|
||||
<p style="margin: 0px;">{{.volume_id}}</p>
|
||||
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.file}}</p>
|
||||
</div>
|
||||
{{else if .net_id}}
|
||||
<div class="draggable-item" data-value="{{.net_id}}" style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
||||
<img alt="Drag" src="images/actions/drag.svg#symb">
|
||||
<img alt="Net" src="images/resources/network.svg#symb">
|
||||
<img style="height: 1em; width: 1em" alt="Drag" src="images/actions/drag.svg#symb">
|
||||
<img style="height: 1em; width: 1em" alt="Net" src="images/resources/network.svg#symb">
|
||||
<p style="margin: 0px;">{{.net_id}}</p>
|
||||
<p style="margin: 0px; overflow: hidden; white-space: nowrap;">{{.value}}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user