From fc52e4b2d3a41efde772e6de8fb2e01f27821701 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:23:04 -0600 Subject: feat(app): better diff/code comments (#14621) Co-authored-by: adamelmore <2363879+adamdottv@users.noreply.github.com> Co-authored-by: David Hill --- packages/ui/src/components/file.css | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 packages/ui/src/components/file.css (limited to 'packages/ui/src/components/file.css') diff --git a/packages/ui/src/components/file.css b/packages/ui/src/components/file.css new file mode 100644 index 000000000..a9150e145 --- /dev/null +++ b/packages/ui/src/components/file.css @@ -0,0 +1,42 @@ +[data-component="file"] { + content-visibility: auto; +} + +[data-component="file"][data-mode="text"] { + overflow: hidden; +} + +[data-component="file"][data-mode="diff"] { + [data-slot="diff-hunk-separator-line-number"] { + position: sticky; + left: 0; + background-color: var(--surface-diff-hidden-strong); + z-index: 2; + display: flex; + align-items: center; + justify-content: center; + + [data-slot="diff-hunk-separator-line-number-icon"] { + aspect-ratio: 1; + width: 24px; + height: 24px; + color: var(--icon-strong-base); + } + } + + [data-slot="diff-hunk-separator-content"] { + position: sticky; + background-color: var(--surface-diff-hidden-base); + color: var(--text-base); + width: var(--diffs-column-content-width); + left: var(--diffs-column-number-width); + padding-left: 8px; + user-select: none; + cursor: default; + text-align: left; + + [data-slot="diff-hunk-separator-content-span"] { + mix-blend-mode: var(--text-mix-blend-mode); + } + } +} -- cgit v1.2.3