diff --git a/packages/ui/src/components/FullscreenDialog.vue b/packages/ui/src/components/FullscreenDialog.vue index 35fef447..4c2be496 100644 --- a/packages/ui/src/components/FullscreenDialog.vue +++ b/packages/ui/src/components/FullscreenDialog.vue @@ -1,5 +1,5 @@ \ No newline at end of file + diff --git a/packages/ui/src/components/MarkdownRenderer.vue b/packages/ui/src/components/MarkdownRenderer.vue index 9d2c7cfd..17b7e855 100644 --- a/packages/ui/src/components/MarkdownRenderer.vue +++ b/packages/ui/src/components/MarkdownRenderer.vue @@ -1,9 +1,9 @@ @@ -287,10 +287,11 @@ onMounted(renderMarkdown); overflow-wrap: break-word; hyphens: auto; /* Pure Naive UI theme - remove custom CSS variables */ - /* 填满容器并处理滚动 */ - height: 100%; - overflow-y: auto; padding: 0.75rem; /* 提供合适的内边距,与其他组件保持一致 */ +} + +/* 当使用 NScrollbar 时,不需要自己的滚动条 */ +.markdown-content--scrollable { /* 隐藏滚动条但保持可滚动 */ scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE and Edge */ diff --git a/packages/ui/src/components/OutputDisplayCore.vue b/packages/ui/src/components/OutputDisplayCore.vue index 0e73b689..8432abaf 100644 --- a/packages/ui/src/components/OutputDisplayCore.vue +++ b/packages/ui/src/components/OutputDisplayCore.vue @@ -1,12 +1,12 @@