Skip to content

refactor: optimize site#237

Merged
Aarebecca merged 1 commit into
mainfrom
refactor/site
Apr 16, 2026
Merged

refactor: optimize site#237
Aarebecca merged 1 commit into
mainfrom
refactor/site

Conversation

@Aarebecca
Copy link
Copy Markdown
Contributor

  • Optimize image language
  • Optimize stream demo style

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the home page and documentation by externalizing image URLs in translations, adopting the AVIF format for architecture diagrams, and refining the layout and scroll behavior of the streaming syntax showcase. Feedback suggests removing redundant scrollbar-hiding styles from the <pre> element, as the parent container already manages this behavior.

Comment on lines +640 to 647
<pre
className="text-[13px] leading-relaxed text-secondary dark:text-secondary-dark font-mono p-4 md:p-6 m-0 whitespace-pre scrollbar-hide"
style={{
scrollbarWidth: 'none',
msOverflowStyle: 'none',
}}>
{displayCode}
</pre>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The scrollbar-hide class and the associated inline styles on the <pre> element are redundant. The scroll container is the parent <div> (line 634), which already handles scrollbar hiding. Since the <pre> element does not have its own overflow property set to auto or scroll, it will not produce scrollbars, making these styles unnecessary on this specific element.

            <pre className="text-[13px] leading-relaxed text-secondary dark:text-secondary-dark font-mono p-4 md:p-6 m-0 whitespace-pre">
              {displayCode}
            </pre>

@Aarebecca Aarebecca merged commit 90b23e0 into main Apr 16, 2026
3 checks passed
@Aarebecca Aarebecca deleted the refactor/site branch April 16, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant