Skip to content

fix(docs): scope tiny-robot style overrides for vp-doc collisions#105

Closed
SonyLeo wants to merge 2 commits into
opentiny:devfrom
SonyLeo:fix/docs-scoped-style-overrides
Closed

fix(docs): scope tiny-robot style overrides for vp-doc collisions#105
SonyLeo wants to merge 2 commits into
opentiny:devfrom
SonyLeo:fix/docs-scoped-style-overrides

Conversation

@SonyLeo
Copy link
Copy Markdown
Collaborator

@SonyLeo SonyLeo commented May 13, 2026

修复 tiny-robot 文档 Tip 信息及示例显示异常的问题

1、Tip 的显示

修复前

image image image

修复后

image image image

2、文档案例的显示

  • Feedback 组件
  • McpSeverPicker 组件
  • Attachments 组件
  • History 组件

修复前

image image image image

修复后

image image image image

Summary by CodeRabbit

  • Style
    • Improved visual consistency across UI components with refined typography and spacing.
    • Enhanced layout of feedback indicators, attachment previews, and history menus.
    • Fixed image rendering and custom block layout presentation.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 73dec998-d397-4e84-9133-b9e3d61aa8fe

📥 Commits

Reviewing files that changed from the base of the PR and between c0c264a and 6a7136f.

📒 Files selected for processing (1)
  • .vitepress/theme/style.css

Walkthrough

This PR adds 90 lines of CSS styling to the VitePress documentation theme, targeting multiple UI components including feedback forms, attachment previews, history menus, form uploads, and custom-block layouts. All changes are pure styling adjustments with no functional code modifications.

Changes

Component-Wide Styling Adjustments

Layer / File(s) Summary
Feedback component styling
.vitepress/theme/style.css
Feedback source pill links styled with color and weight, with underline appearing on hover. Feedback action dropdown lists have default list-style removed and padding/margins normalized.
Attachment and history menu styling
.vitepress/theme/style.css
Attachment file preview images have extra margins removed; download action links use brand color and weight with consistent underline behavior. History menu lists have bullets removed and spacing normalized with compact margins between items.
Form upload and custom-block layout fixes
.vitepress/theme/style.css
MCP form upload/picker component images render as block elements without extra margins. Tiny-robot route custom-block elements convert to a two-column CSS grid, with child elements and list content constrained to the second column and the pseudo-element ::before positioned in the first column.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

🐰 The styles align with grace so fine,
Each component now will truly shine!
Pills and lists and grids arranged,
The layout dance is now exchanged.
A rabbit's work makes pages bright! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: scoping CSS style overrides for tiny-robot to prevent collisions with vp-doc styles.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SonyLeo SonyLeo closed this May 13, 2026
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