Skip to content

Commit

Permalink
make the download progress less likely to wrap across two lines, or t…
Browse files Browse the repository at this point in the history
…o make everything wobble
  • Loading branch information
db48x committed Aug 1, 2016
1 parent 459da3f commit 1ff5ba7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ var Module = null;
xhr.open('GET', url, true);
xhr.responseType = rt || 'arraybuffer';
xhr.onprogress = function (e) {
titleCell.textContent = title +" "+ formatSize(e);
titleCell.innerHTML = title +" <span style=\"font-size: smaller\">"+ formatSize(e) +"</span>";
};
xhr.onload = function (e) {
if (xhr.status === 200) {
Expand Down Expand Up @@ -1101,7 +1101,7 @@ var Module = null;
if (!table) {
table = document.createElement('table');
table.setAttribute('id', "dosbox-progress-indicator");
table.style.width = "50%";
table.style.width = "75%";
table.style.color = splash.getColor('foreground');
table.style.backgroundColor = splash.getColor('background');
table.style.marginLeft = 'auto';
Expand Down Expand Up @@ -1135,6 +1135,7 @@ var Module = null;
titleCell.textContent = '—';
titleCell.style.verticalAlign = 'center';
titleCell.style.minHeight = "24px";
titleCell.style.whiteSpace = "nowrap";
cell.appendChild(titleCell);
var statusCell = document.createElement('span');
statusCell.style.position = 'absolute';
Expand Down

0 comments on commit 1ff5ba7

Please sign in to comment.