Resume support for Gemini-CLI (#119)

This commit is contained in:
Solomon
2025-07-11 10:18:53 +01:00
committed by GitHub
parent 6c2d5cf616
commit e2d374f0a2
5 changed files with 466 additions and 85 deletions

View File

@@ -32,14 +32,14 @@ export function MarkdownRenderer({
</em>
),
p: ({ children, ...props }) => (
<p {...props} className="mb-0 last:mb-0 leading-tight">
<p {...props} className="mb-4 last:mb-0 leading-loose">
{children}
</p>
),
h1: ({ children, ...props }) => (
<h1
{...props}
className="text-lg font-bold mb-0 mt-1 first:mt-0 leading-tight"
className="text-lg font-bold mb-4 mt-6 first:mt-0 leading-relaxed"
>
{children}
</h1>
@@ -47,7 +47,7 @@ export function MarkdownRenderer({
h2: ({ children, ...props }) => (
<h2
{...props}
className="text-base font-bold mb-0 mt-1 first:mt-0 leading-tight"
className="text-base font-bold mb-3 mt-5 first:mt-0 leading-relaxed"
>
{children}
</h2>
@@ -55,23 +55,23 @@ export function MarkdownRenderer({
h3: ({ children, ...props }) => (
<h3
{...props}
className="text-sm font-bold mb-0 mt-1 first:mt-0 leading-tight"
className="text-sm font-bold mb-3 mt-4 first:mt-0 leading-relaxed"
>
{children}
</h3>
),
ul: ({ children, ...props }) => (
<ul {...props} className="list-disc ml-4 mb-0 -space-y-1">
<ul {...props} className="list-disc ml-4 mb-2 space-y-1">
{children}
</ul>
),
ol: ({ children, ...props }) => (
<ol {...props} className="list-decimal ml-4 mb-0 -space-y-1">
<ol {...props} className="list-decimal ml-4 mb-2 space-y-1">
{children}
</ol>
),
li: ({ children, ...props }) => (
<li {...props} className="mb-0 leading-tight -my-0.5">
<li {...props} className="mb-1 leading-relaxed">
{children}
</li>
),