docs: share fix mobile diffs

This commit is contained in:
Jay V
2025-07-10 18:19:18 -04:00
parent b4950a157c
commit f7d44b178b
3 changed files with 81 additions and 38 deletions

View File

@@ -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>
))}