share page fix

This commit is contained in:
Jay V
2025-06-10 09:33:28 -05:00
parent bb60aa3060
commit c3ab370344

View File

@@ -1299,10 +1299,12 @@ export default function Share(props: {
<span data-element-label>Write</span>
<b>{filePath}</b>
</span>
<Show when={diagnostics().length > 0}>
<TextPart
data-size="sm"
text={diagnostics().join("\n\n")}
/>
</Show>
<Switch>
<Match when={hasError}>
<div data-part-tool-result>
@@ -1398,10 +1400,12 @@ export default function Share(props: {
lang={getFileType(filePath)}
/>
</div>
<Show when={diagnostics().length > 0}>
<TextPart
data-size="sm"
text={diagnostics().join("\n\n")}
/>
</Show>
</div>
<ToolFooter time={duration()} />
</div>