fix: 修复结果没有对齐的问题,使滚动条可以通过f12出现

This commit is contained in:
肖应宇 2026-04-01 15:11:02 +08:00
parent 875cfa7e7b
commit 8b0c69327b
2 changed files with 7 additions and 7 deletions

View File

@ -468,7 +468,7 @@ export function ArtifactFileDetail({
{previewable &&
viewMode === "preview" &&
(language === "markdown" || language === "html") && (
<div className="min-h-full mb-[150px] rounded-b-[10px] bg-white p-0 mb-0">
<div className="min-h-full mb-[180px] rounded-b-[10px] bg-white p-0 mb-0">
<ArtifactFilePreview
content={displayContent}
language={language ?? "text"}
@ -477,7 +477,7 @@ export function ArtifactFileDetail({
</div>
)}
{isCodeFile && viewMode === "code" && (
<div className="min-h-full mb-[150px] rounded-b-[10px] bg-white p-0 mb-0">
<div className="min-h-full mb-[180px] rounded-b-[10px] bg-white p-0 mb-0">
<CodeEditor
className="size-full resize-none rounded-none border-none py-[20px]"
value={displayContent ?? ""}
@ -487,7 +487,7 @@ export function ArtifactFileDetail({
</div>
)}
{!isCodeFile && (
<div className="h-full mb-[150px] ">
<div className="h-full mb-[180px] ">
<iframe
className="size-full border-0"
srcDoc={artifactViewerSrcDoc}

View File

@ -399,10 +399,10 @@
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
}
*::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
/* Chrome, Safari, Opera */
/* *::-webkit-scrollbar {
display: none;
} */
:root {
--container-width-xs: calc(var(--spacing) * 72);