diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx
index e8879c50..b48d0466 100644
--- a/packages/web/src/components/Share.tsx
+++ b/packages/web/src/components/Share.tsx
@@ -859,59 +859,15 @@ export default function Share(props: {
{store.info?.title}
-
- -
- Cost
- {data().cost !== undefined ? (
- ${data().cost.toFixed(2)}
- ) : (
- —
- )}
-
- -
- Input Tokens
- {data().tokens.input ? (
- {data().tokens.input}
- ) : (
- —
- )}
-
- -
- Output Tokens
- {data().tokens.output ? (
- {data().tokens.output}
- ) : (
- —
- )}
-
- -
- Reasoning Tokens
- {data().tokens.reasoning ? (
- {data().tokens.reasoning}
- ) : (
- —
- )}
-
-
-
-
- -
-
-
-
- {data().rootDir}
-
- -
-
-
-
-
- v{store.info?.version}
-
-
-
-
+ -
+
+
+
+
+ v{store.info?.version}
+
+
{Object.values(data().models).length > 0 ? (
{([provider, model]) => (
@@ -1305,12 +1261,12 @@ export default function Share(props: {
>
{(_part) => {
const path = createMemo(() =>
- toolData()?.args.path !== data().rootDir
+ toolData()?.args?.path !== data().rootDir
? stripWorkingDirectory(
- toolData()?.args.path,
+ toolData()?.args?.path,
data().rootDir,
)
- : toolData()?.args.path,
+ : toolData()?.args?.path,
)
return (
@@ -1332,7 +1288,9 @@ export default function Share(props: {
LS
- {path()}
+
+ {path()}
+
@@ -1375,7 +1333,7 @@ export default function Share(props: {
{(_part) => {
const filePath = createMemo(() =>
stripWorkingDirectory(
- toolData()?.args.filePath,
+ toolData()?.args?.filePath,
data().rootDir,
),
)
@@ -1398,7 +1356,9 @@ export default function Share(props: {
Read
- {filePath()}
+
+ {filePath()}
+
@@ -1499,7 +1459,9 @@ export default function Share(props: {
Write
- {filePath()}
+
+ {filePath()}
+
0}>
{diagnostics()}
@@ -1586,7 +1548,9 @@ export default function Share(props: {
Edit
- {filePath()}
+
+ {filePath()}
+
@@ -1935,13 +1899,47 @@ export default function Share(props: {
)}
-
+
-
{getStatusText(connectionStatus())}
+
{getStatusText(connectionStatus())}
+
+ -
+ Cost
+ {data().cost !== undefined ? (
+ ${data().cost.toFixed(2)}
+ ) : (
+ —
+ )}
+
+ -
+ Input Tokens
+ {data().tokens.input ? (
+ {data().tokens.input}
+ ) : (
+ —
+ )}
+
+ -
+ Output Tokens
+ {data().tokens.output ? (
+ {data().tokens.output}
+ ) : (
+ —
+ )}
+
+ -
+ Reasoning Tokens
+ {data().tokens.reasoning ? (
+ {data().tokens.reasoning}
+ ) : (
+ —
+ )}
+
+
diff --git a/packages/web/src/components/share.module.css b/packages/web/src/components/share.module.css
index a52fd176..41b257da 100644
--- a/packages/web/src/components/share.module.css
+++ b/packages/web/src/components/share.module.css
@@ -89,7 +89,7 @@
padding: 0;
margin: 0;
display: flex;
- gap: 0.5rem 1rem;
+ gap: 0.5rem 0.875rem;
flex-wrap: wrap;
li {
@@ -104,8 +104,7 @@
}
}
- [data-section="stats"][data-section-root],
- [data-section="stats"][data-section-models] {
+ [data-section="stats"] {
li {
gap: 0.3125rem;
@@ -375,7 +374,7 @@
}
}
}
- [data-part-type="connection-status"] {
+ [data-part-type="summary"] {
& > [data-section="decoration"] {
span:first-child {
flex: 0 0 auto;
@@ -405,12 +404,37 @@
}
& > [data-section="content"] {
- span {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+
+ p[data-section="copy"] {
display: block;
line-height: 18px;
font-size: 0.875rem;
color: var(--sl-color-text-dimmed);
}
+
+ [data-section="stats"] {
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+ display: flex;
+ gap: 0.5rem 0.875rem;
+ flex-wrap: wrap;
+
+ li {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ font-size: 0.75rem;
+ color: var(--sl-color-text-secondary);
+
+ span[data-placeholder] {
+ color: var(--sl-color-text-dimmed);
+ }
+ }
+ }
}
}
}