The open source coding agent.
TypeScript
fix(app): truncate comment text and set card max-width to 200px
David Hill538404005139
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsxindex 8641cdd27a3..3f137f8628b 100644--- a/packages/app/src/components/prompt-input.tsx+++ b/packages/app/src/components/prompt-input.tsx@@ -1681,7 +1681,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {return (<divclassList={{- "group shrink-0 flex flex-col gap-1 rounded-[6px] bg-background-stronger border border-border-base pl-2 pr-1 py-1 max-w-[320px]": true,+ "group shrink-0 flex flex-col gap-1 rounded-[6px] bg-background-stronger border border-border-base pl-2 pr-1 py-1 max-w-[200px]": true,"cursor-pointer hover:bg-surface-interactive-weak": !!item.commentID,}}onClick={() => {@@ -1720,7 +1720,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {/></div><Show when={item.comment}>- {(comment) => <div class="text-11-regular text-text-strong ml-5">{comment()}</div>}+ {(comment) => <div class="text-11-regular text-text-strong ml-5 truncate">{comment()}</div>}</Show></div>)