Fossil SCM

Made diff view table 100% wide instead of 98%. The unsightly horizontal scrollbars still don't appear at that width and this eliminates an odd-looking gap on the right.

stephan 2021-09-07 22:24 trunk
Commit be9602d0dfca0047bb50d048b96b1a51eb0b5b90785e92f66b4a252ce13eb937
1 file changed +1 -1
+1 -1
--- src/diff.js
+++ src/diff.js
@@ -57,11 +57,11 @@
5757
allCols[i].style.maxWidth = w + "px";
5858
}
5959
var allDiffs = document.querySelectorAll('table.diff');
6060
w = lastWidth;
6161
for(let i=0; i<allDiffs.length; i++){
62
- allDiffs[i].style.width = '98%'; // setting to w causes unsightly horiz. scrollbar
62
+ allDiffs[i].style.width = '100%'; // setting to w causes unsightly horiz. scrollbar
6363
allDiffs[i].style.maxWidth = w + "px";
6464
}
6565
}
6666
}
6767
checkWidth();
6868
--- src/diff.js
+++ src/diff.js
@@ -57,11 +57,11 @@
57 allCols[i].style.maxWidth = w + "px";
58 }
59 var allDiffs = document.querySelectorAll('table.diff');
60 w = lastWidth;
61 for(let i=0; i<allDiffs.length; i++){
62 allDiffs[i].style.width = '98%'; // setting to w causes unsightly horiz. scrollbar
63 allDiffs[i].style.maxWidth = w + "px";
64 }
65 }
66 }
67 checkWidth();
68
--- src/diff.js
+++ src/diff.js
@@ -57,11 +57,11 @@
57 allCols[i].style.maxWidth = w + "px";
58 }
59 var allDiffs = document.querySelectorAll('table.diff');
60 w = lastWidth;
61 for(let i=0; i<allDiffs.length; i++){
62 allDiffs[i].style.width = '100%'; // setting to w causes unsightly horiz. scrollbar
63 allDiffs[i].style.maxWidth = w + "px";
64 }
65 }
66 }
67 checkWidth();
68

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button