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.
Commit
be9602d0dfca0047bb50d048b96b1a51eb0b5b90785e92f66b4a252ce13eb937
Parent
c5f8e79990678c4…
1 file changed
+1
-1
+1
-1
| --- src/diff.js | ||
| +++ src/diff.js | ||
| @@ -57,11 +57,11 @@ | ||
| 57 | 57 | allCols[i].style.maxWidth = w + "px"; |
| 58 | 58 | } |
| 59 | 59 | var allDiffs = document.querySelectorAll('table.diff'); |
| 60 | 60 | w = lastWidth; |
| 61 | 61 | 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 | |
| 63 | 63 | allDiffs[i].style.maxWidth = w + "px"; |
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | checkWidth(); |
| 68 | 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 = '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 |