From b90e3465722a85eba434cb33f51d7fa3f98c54df Mon Sep 17 00:00:00 2001 From: lyf <1910527151@qq.com> Date: Wed, 21 Aug 2024 17:20:50 +0800 Subject: [PATCH] feat: add hide button bug --- app/components/artifacts.tsx | 1 - app/styles/globals.scss | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/artifacts.tsx b/app/components/artifacts.tsx index bfd49ff4b..ac0d713b3 100644 --- a/app/components/artifacts.tsx +++ b/app/components/artifacts.tsx @@ -255,7 +255,6 @@ export function Artifacts() { ref={previewRef} autoHeight={false} height={"100%"} - ref={previewRef} onLoad={(title) => { setFileName(title as string); setLoading(false); diff --git a/app/styles/globals.scss b/app/styles/globals.scss index a31bc17de..ea70fe56c 100644 --- a/app/styles/globals.scss +++ b/app/styles/globals.scss @@ -304,7 +304,7 @@ pre { } } - pre{ +pre{ .show-hide-button { border-radius: 10px; position: absolute;