authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-28 23:28:38-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-01 10:31:13-08:00
log3dd004c3230d62028e0d1c747cf641cf8d33ad3e
tree293dfd90cce87f51077e736715b396a33ec2d12f
parent1af43dbf90add958b02ac5935b103f0eba6dc60a

Keep diff panel header sticky while scrolling

- Make the diffs header stick to the top of the panel - Add header background and bottom border for readability

1 files changed, 8 insertions(+), 0 deletions(-)

apps/web/src/components/DiffPanel.tsx+8
......@@ -61,6 +61,14 @@ const DIFF_PANEL_UNSAFE_CSS = `
6161 color: var(--foreground) !important;
6262}
6363
64[data-diffs-header] {
65 position: sticky !important;
66 top: 0;
67 z-index: 4;
68 background-color: color-mix(in srgb, var(--card) 94%, var(--foreground)) !important;
69 border-bottom: 1px solid var(--border) !important;
70}
71
6472[data-title] {
6573 cursor: pointer;
6674 transition: