mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 07:52:03 +00:00
docs: share fix mobile diffs
This commit is contained in:
parent
b4950a157c
commit
f7d44b178b
3 changed files with 81 additions and 38 deletions
|
|
@ -173,12 +173,9 @@ export function ContentDiff(props: Props) {
|
|||
{mobileRows().map((block) => (
|
||||
<div data-component="diff-block" data-type={block.type}>
|
||||
{block.lines.map((line) => (
|
||||
<ContentCode
|
||||
code={line}
|
||||
lang={props.lang}
|
||||
data-section="cell"
|
||||
data-diff-type={block.type === "removed" ? "removed" : block.type === "added" ? "added" : ""}
|
||||
/>
|
||||
<div data-diff-type={block.type === "removed" ? "removed" : block.type === "added" ? "added" : ""}>
|
||||
<ContentCode code={line} lang={props.lang} flush />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue