From ccb3f792bc01368a255be163c9ce8dc4af1746f4 Mon Sep 17 00:00:00 2001 From: SonyLeo <746591437@qq.com> Date: Tue, 12 May 2026 05:24:23 -0700 Subject: [PATCH 1/2] fix(docs): scope tiny-robot style overrides for vp-doc collisions --- .vitepress/theme/style.css | 76 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index c219ed2..373e5fc 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -826,3 +826,79 @@ img.image-inline { font-size: 13px; font-family: var(--vp-font-family-mono); } + +.vp-doc[class*="_components_feedback"] .tr-feedback__source-list a.pill { + color: var(--tr-feedback-source-pill-color); + font-weight: var(--tr-font-weight-regular, 400); + text-decoration: none; + border-bottom: none; +} + +.vp-doc[class*="_components_feedback"] .tr-feedback__source-list a.pill:hover { + text-decoration: underline; +} + +.vp-doc[class*="_components_feedback"] .tr-feedback .tr-action-group__dropdown { + list-style: none !important; + padding: 4px !important; + margin: 0 !important; +} + + +.vp-doc[class*="_components_attachments"] .tr-file-card__picture-img, +.vp-doc[class*="_components_attachments"] .tr-image-preview img { + margin: 0; +} + +.vp-doc[class*="_components_attachments"] .tr-file-card a.tr-file-card__action-btn--download { + color: #1476ff; + font-weight: var(--tr-font-weight-regular, 400); + text-decoration: none; + border-bottom: none; +} + +.vp-doc[class*="_components_attachments"] .tr-file-card a.tr-file-card__action-btn--download:hover { + text-decoration: none; + border-bottom: none; +} + +.vp-doc[class*="_components_history"] .tr-history__menu-list { + list-style: none !important; + padding: 8px 0 !important; + margin: 0 !important; +} + +/* custom-block layout fix */ +.vp-doc[class*="_tiny-robot_"] .custom-block { + display: grid; + grid-template-columns: 20px minmax(0, 1fr); + column-gap: 12px; + row-gap: 8px; + align-items: start; +} + +.vp-doc[class*="_tiny-robot_"] .custom-block > * { + grid-column: 2; + min-width: 0; +} + +.vp-doc[class*="_tiny-robot_"] .custom-block ul, +.vp-doc[class*="_tiny-robot_"] .custom-block ol { + margin: 0 !important; + padding-left: 1rem !important; +} + +.vp-doc[class*="_tiny-robot_"] .custom-block li { + line-height: 20px; +} + +.vp-doc[class*="_tiny-robot_"] .custom-block li + li { + margin-top: 8px; +} + +.vp-doc[class*="_tiny-robot_"] .custom-block::before { + display: block; + grid-column: 1; + grid-row: 1; + margin-right: 0; +} From 6a7136f8b51348d6486a5e0344e65adaa79b7116 Mon Sep 17 00:00:00 2001 From: SonyLeo <746591437@qq.com> Date: Tue, 12 May 2026 18:53:34 -0700 Subject: [PATCH 2/2] fix(docs): add scoped vp-doc override fixes for tiny-robot components --- .vitepress/theme/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index 373e5fc..c7362e6 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -868,6 +868,20 @@ img.image-inline { margin: 0 !important; } +.vp-doc[class*="_components_history"] .tr-history__menu-list__item { + line-height: normal; +} + +.vp-doc[class*="_components_history"] .tr-history__menu-list__item + .tr-history__menu-list__item { + margin-top: 0; +} + +.vp-doc[class*="_components_mcp-add-form"] .form-editor__file-upload > img, +.vp-doc[class*="_components_mcp-server-picker"] .form-editor__file-upload > img { + margin: 0; + display: block; +} + /* custom-block layout fix */ .vp-doc[class*="_tiny-robot_"] .custom-block { display: grid;