feat: optimized diff viewer element sizes layout

This commit is contained in:
Bohdan Triapitsyn
2025-12-15 13:56:01 +02:00
parent f9b3646f17
commit 6b78ad0b49
2 changed files with 13 additions and 0 deletions
@@ -28,6 +28,14 @@ const WEBKIT_SCROLL_FIX_CSS = `
[data-code] {
-webkit-overflow-scrolling: touch;
}
/* Reduce hunk separator height */
[data-separator-content] {
height: 24px !important;
}
[data-expand-button] {
height: 24px !important;
width: 24px !important;
}
`;
// Fast cache key - use length + samples instead of full hash
+5
View File
@@ -718,6 +718,11 @@ html:not(.dark) .chat-scroll {
--diffs-gap-block: 0;
}
/* Desktop: slightly smaller diff code text */
:root:not(.mobile-pointer) .pierre-diff-wrapper {
--diffs-font-size: 0.8125rem;
}
/* WebKit scroll rendering optimizations */
/* Note: avoid will-change and contain as they break resize behavior */
.pierre-diff-wrapper,