diff --git a/app/components/artifacts.tsx b/app/components/artifacts.tsx index e9fa2f34a..bfd49ff4b 100644 --- a/app/components/artifacts.tsx +++ b/app/components/artifacts.tsx @@ -209,6 +209,7 @@ export function Artifacts() { const [loading, setLoading] = useState(true); const [fileName, setFileName] = useState(""); const previewRef = useRef(null); + useEffect(() => { if (id) { fetch(`${ApiPath.Artifacts}?id=${id}`) @@ -251,6 +252,7 @@ export function Artifacts() { {code && ( - + )} diff --git a/app/styles/globals.scss b/app/styles/globals.scss index ea70fe56c..a31bc17de 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;