chore: generate

pull/11303/merge
opencode-agent[bot] 2026-03-12 03:56:04 +00:00
parent db7bafe917
commit 1d7fcd40b4
1 changed files with 29 additions and 29 deletions

View File

@ -778,35 +778,35 @@ export function MessageTimeline(props: {
<div class="flex w-max min-w-full justify-end gap-2"> <div class="flex w-max min-w-full justify-end gap-2">
<Index each={comments()}> <Index each={comments()}>
{(commentAccessor: () => MessageComment) => { {(commentAccessor: () => MessageComment) => {
const comment = createMemo(() => commentAccessor()) const comment = createMemo(() => commentAccessor())
return ( return (
<Show when={comment()}> <Show when={comment()}>
{(c) => ( {(c) => (
<div class="shrink-0 max-w-[260px] rounded-[6px] border border-border-weak-base bg-background-stronger px-2.5 py-2"> <div class="shrink-0 max-w-[260px] rounded-[6px] border border-border-weak-base bg-background-stronger px-2.5 py-2">
<div class="flex items-center gap-1.5 min-w-0 text-11-medium text-text-strong"> <div class="flex items-center gap-1.5 min-w-0 text-11-medium text-text-strong">
<FileIcon <FileIcon
node={{ path: c().path, type: "file" }} node={{ path: c().path, type: "file" }}
class="size-3.5 shrink-0" class="size-3.5 shrink-0"
/> />
<span class="truncate">{getFilename(c().path)}</span> <span class="truncate">{getFilename(c().path)}</span>
<Show when={c().selection}> <Show when={c().selection}>
{(selection) => ( {(selection) => (
<span class="shrink-0 text-text-weak"> <span class="shrink-0 text-text-weak">
{selection().startLine === selection().endLine {selection().startLine === selection().endLine
? `:${selection().startLine}` ? `:${selection().startLine}`
: `:${selection().startLine}-${selection().endLine}`} : `:${selection().startLine}-${selection().endLine}`}
</span> </span>
)} )}
</Show> </Show>
</div> </div>
<div class="pt-1 text-12-regular text-text-strong whitespace-pre-wrap break-words"> <div class="pt-1 text-12-regular text-text-strong whitespace-pre-wrap break-words">
{c().comment} {c().comment}
</div> </div>
</div> </div>
)} )}
</Show> </Show>
) )
}} }}
</Index> </Index>
</div> </div>
</div> </div>