diff --git a/static/application.js b/static/application.js index 22b0e0e6..9470cee9 100644 --- a/static/application.js +++ b/static/application.js @@ -1918,13 +1918,14 @@ function update_gpu_layers() { gpu_layers = 0; for (let i=0; i < $("#gpu_count")[0].value; i++) { gpu_layers += parseInt($("#gpu_layers"+i)[0].value); + $("#gpu_layers_box_"+i)[0].value=$("#gpu_layers"+i)[0].value; } if (gpu_layers > parseInt(document.getElementById("gpu_layers_max").innerHTML)) { disableButtons([load_model_accept]); $("#gpu_layers_current").html(""+gpu_layers+"/"+ document.getElementById("gpu_layers_max").innerHTML +""); } else { enableButtons([load_model_accept]); - $("#gpu_layers_current").html(gpu_layers); + $("#gpu_layers_current").html(gpu_layers+"/"+document.getElementById("gpu_layers_max").innerHTML); } } @@ -2543,7 +2544,10 @@ $(document).ready(function(){ $("#modellayers").removeClass("hidden"); html = ""; for (let i = 0; i < msg.gpu_names.length; i++) { - html += "GPU " + i + " " + msg.gpu_names[i] + ": "; + html += "GPU " + i + " " + msg.gpu_names[i] + ": "; + html += ''; + html += ""; } $("#model_layer_bars").html(html); $("#gpu_layers_max").html(msg.layer_count); diff --git a/static/custom.css b/static/custom.css index c552ace2..078ae7d2 100644 --- a/static/custom.css +++ b/static/custom.css @@ -1464,3 +1464,14 @@ body.connected .popupfooter, .popupfooter.always-available { overflow: hidden; font-size: 12pt; } + +.model_layers { + width: 3ch; + background-color: inherit; + border: none; + outline: none; +} + +.model_layers:focus { + color: #cdf; +} \ No newline at end of file