diff options
| author | Adam <[email protected]> | 2025-10-31 11:54:27 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-31 12:00:44 -0500 |
| commit | ffc889b99e61c6f21ce68985ee398c3031a5b19b (patch) | |
| tree | b4356c27d343f127265ae020b015e8224b658ba4 /packages/ui/src/components | |
| parent | 36b48a44ac1f0c9593a4abdf1d21980a2bfaee22 (diff) | |
| download | opencode-ffc889b99e61c6f21ce68985ee398c3031a5b19b.tar.gz opencode-ffc889b99e61c6f21ce68985ee398c3031a5b19b.zip | |
wip: desktop work
Diffstat (limited to 'packages/ui/src/components')
| -rw-r--r-- | packages/ui/src/components/diff-changes.tsx | 10 | ||||
| -rw-r--r-- | packages/ui/src/components/markdown.css | 7 |
2 files changed, 7 insertions, 10 deletions
diff --git a/packages/ui/src/components/diff-changes.tsx b/packages/ui/src/components/diff-changes.tsx index 433c47f39..e6c04f519 100644 --- a/packages/ui/src/components/diff-changes.tsx +++ b/packages/ui/src/components/diff-changes.tsx @@ -16,16 +16,6 @@ export function DiffChanges(props: { diff: FileDiff | FileDiff[]; variant?: "def ) const total = createMemo(() => (additions() ?? 0) + (deletions() ?? 0)) - const countLines = (text: string) => { - if (!text) return 0 - return text.split("\n").length - } - - const totalBeforeLines = createMemo(() => { - if (!Array.isArray(props.diff)) return countLines(props.diff.before || "") - return props.diff.reduce((acc, diff) => acc + countLines(diff.before || ""), 0) - }) - const blockCounts = createMemo(() => { const TOTAL_BLOCKS = 5 diff --git a/packages/ui/src/components/markdown.css b/packages/ui/src/components/markdown.css index abc505a9e..6af0f550e 100644 --- a/packages/ui/src/components/markdown.css +++ b/packages/ui/src/components/markdown.css @@ -4,6 +4,7 @@ overflow: auto; scrollbar-width: none; color: var(--text-base); + text-wrap: pretty; /* text-14-regular */ font-family: var(--font-family-sans); @@ -34,4 +35,10 @@ margin-top: 16px; margin-bottom: 16px; } + + hr { + margin-top: 8px; + margin-bottom: 16px; + border-color: var(--border-weaker-base); + } } |
