Skip to content

Commit 25c876c

Browse files
committed
docs: share fix last message not expandable
1 parent cf83e31 commit 25c876c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/web/src/components/Share.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function TextPart(props: TextPartProps) {
321321

322322
createEffect(() => {
323323
local.text
324+
local.expand
324325
setTimeout(checkOverflow, 0)
325326
})
326327

@@ -372,6 +373,7 @@ function ErrorPart(props: ErrorPartProps) {
372373

373374
createEffect(() => {
374375
local.children
376+
local.expand
375377
setTimeout(checkOverflow, 0)
376378
})
377379

@@ -425,6 +427,7 @@ function MarkdownPart(props: MarkdownPartProps) {
425427

426428
createEffect(() => {
427429
local.text
430+
local.expand
428431
setTimeout(checkOverflow, 0)
429432
})
430433

@@ -486,6 +489,14 @@ function TerminalPart(props: TerminalPartProps) {
486489
}
487490
}
488491

492+
createEffect(() => {
493+
local.command
494+
local.result
495+
local.error
496+
local.expand
497+
setTimeout(checkOverflow, 0)
498+
})
499+
489500
onMount(() => {
490501
checkOverflow()
491502
window.addEventListener("resize", checkOverflow)
@@ -895,7 +906,7 @@ export default function Share(props: {
895906
fallback={<p>Waiting for messages...</p>}
896907
>
897908
<div class={styles.parts}>
898-
<SuspenseList>
909+
<SuspenseList revealOrder="forwards">
899910
<For each={data().messages}>
900911
{(msg, msgIndex) => (
901912
<Suspense>

0 commit comments

Comments
 (0)