feat: artifacts style

This commit is contained in:
Dogtiti
2024-07-25 17:37:21 +08:00
parent 7c1bc1f1a1
commit 21ef9a4567
6 changed files with 58 additions and 25 deletions

View File

@@ -105,9 +105,9 @@ export function PreCode(props: { children: any }) {
<Mermaid code={mermaidCode} key={mermaidCode} />
)}
{htmlCode.length > 0 && (
<FullScreen className="no-dark html" right={60}>
<FullScreen className="no-dark html" right={70}>
<ArtifactShareButton
style={{ position: "absolute", right: 10, top: 10 }}
style={{ position: "absolute", right: 20, top: 10 }}
getCode={() => htmlCode}
/>
<HTMLPreview