From 79d79798aa14dd28b69552c7aafa527a80d3b669 Mon Sep 17 00:00:00 2001 From: "hdcode.dev" <215285761+hdcodedev@users.noreply.github.com> Date: Mon, 2 Nov 2026 11:30:10 +0100 Subject: [PATCH 1/2] docs: restyle wiki source link icon --- docs-app/components/MarkdownRenderer.tsx | 37 +++++++++++------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/docs-app/components/MarkdownRenderer.tsx b/docs-app/components/MarkdownRenderer.tsx index b68b7a8..f4fae9d 100644 --- a/docs-app/components/MarkdownRenderer.tsx +++ b/docs-app/components/MarkdownRenderer.tsx @@ -96,7 +96,7 @@ function CodeBlock({ code, language, sourceUrl = null }: CodeBlockProps) { }, [highlighter, ready, code, language]); const codeBlock = ( - + {highlightedHtml ? (
) : ( @@ -113,31 +113,28 @@ function CodeBlock({ code, language, sourceUrl = null }: CodeBlockProps) { if (!sourceUrl) return codeBlock; return ( -
-
- - - -
+
+ + + {codeBlock}
); } -function SourceFileIcon() { +function SourceCodeIcon() { return ( -
) : ( @@ -120,9 +120,11 @@ function CodeBlock({ code, language, sourceUrl = null }: CodeBlockProps) { rel="noopener noreferrer" title="View canonical Kotlin source" aria-label="View canonical Kotlin source" - className="absolute bottom-3 right-3 z-10 inline-flex size-6 -rotate-6 items-center justify-center rounded-full border border-[color-mix(in_oklch,var(--color-success)_55%,var(--border-color))] text-[color-mix(in_oklch,var(--color-success)_72%,var(--text-secondary))] transition-colors hover:border-[var(--color-success)] hover:text-[var(--color-success)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ring-soft)]" + className="group absolute bottom-1 right-1 z-10 inline-flex size-11 items-center justify-center rounded-full text-[color-mix(in_oklch,var(--color-success)_72%,var(--text-secondary))] transition-colors hover:text-[var(--color-success)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ring-soft)]" > - + + + {codeBlock}