mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
docs: share fix last message not expandable
This commit is contained in:
parent
cf83e31f23
commit
25c876caa2
1 changed files with 12 additions and 1 deletions
|
@ -321,6 +321,7 @@ function TextPart(props: TextPartProps) {
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
local.text
|
local.text
|
||||||
|
local.expand
|
||||||
setTimeout(checkOverflow, 0)
|
setTimeout(checkOverflow, 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -372,6 +373,7 @@ function ErrorPart(props: ErrorPartProps) {
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
local.children
|
local.children
|
||||||
|
local.expand
|
||||||
setTimeout(checkOverflow, 0)
|
setTimeout(checkOverflow, 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -425,6 +427,7 @@ function MarkdownPart(props: MarkdownPartProps) {
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
local.text
|
local.text
|
||||||
|
local.expand
|
||||||
setTimeout(checkOverflow, 0)
|
setTimeout(checkOverflow, 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -486,6 +489,14 @@ function TerminalPart(props: TerminalPartProps) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createEffect(() => {
|
||||||
|
local.command
|
||||||
|
local.result
|
||||||
|
local.error
|
||||||
|
local.expand
|
||||||
|
setTimeout(checkOverflow, 0)
|
||||||
|
})
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
checkOverflow()
|
checkOverflow()
|
||||||
window.addEventListener("resize", checkOverflow)
|
window.addEventListener("resize", checkOverflow)
|
||||||
|
@ -895,7 +906,7 @@ export default function Share(props: {
|
||||||
fallback={<p>Waiting for messages...</p>}
|
fallback={<p>Waiting for messages...</p>}
|
||||||
>
|
>
|
||||||
<div class={styles.parts}>
|
<div class={styles.parts}>
|
||||||
<SuspenseList>
|
<SuspenseList revealOrder="forwards">
|
||||||
<For each={data().messages}>
|
<For each={data().messages}>
|
||||||
{(msg, msgIndex) => (
|
{(msg, msgIndex) => (
|
||||||
<Suspense>
|
<Suspense>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue