Commit 14a175a
fix(diff): opaque sticky-gutter so horizontal-scrolled text doesn't bleed through
The line-number + sign cells were sticky-left with `background: inherit`,
which inherited the row's semi-transparent tint (rgba 0.10–0.18) from
.sbs-line. On narrow diff windows where the content overflows
horizontally, the scrolled body text showed through the sticky gutter
and the two visually overlapped — pretty much the worst-case readability
state.
Switched to the same pattern GitHub / GitLab / VS Code's monaco diff use:
each row type (context / delete / add / blank) gets a SOLID gutter
colour that equals its rgba tint pre-blended against the body bg
(#fafafa light / #1a1a1a dark). At column-resting state the gutter is
visually indistinguishable from the row, but during horizontal scroll
it actually paints opaquely instead of letting text through. Added
z-index: 1 on both gutter cells so paint-order is unambiguous, and a
thin border-right on .sbs-sign so the gutter / content boundary stays
visible during scroll.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 334bc64 commit 14a175a
1 file changed
Lines changed: 56 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1790 | 1802 | | |
1791 | 1803 | | |
1792 | 1804 | | |
| |||
1795 | 1807 | | |
1796 | 1808 | | |
1797 | 1809 | | |
1798 | | - | |
| 1810 | + | |
| 1811 | + | |
1799 | 1812 | | |
1800 | 1813 | | |
1801 | 1814 | | |
| |||
1805 | 1818 | | |
1806 | 1819 | | |
1807 | 1820 | | |
1808 | | - | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1809 | 1844 | | |
1810 | 1845 | | |
1811 | 1846 | | |
| |||
1817 | 1852 | | |
1818 | 1853 | | |
1819 | 1854 | | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
1820 | 1874 | | |
1821 | 1875 | | |
1822 | 1876 | | |
| |||
0 commit comments