summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-23 20:38:24 +0000
committerDavid Hill <[email protected]>2026-01-24 06:18:55 +0000
commit5384040051397c321d4163a4ac6031d1f6baf6df (patch)
tree5f721299d604ad6a607bb8d79b0662b556e50871
parent1bf4caa0c1c417692abafdacc11c11f312a027b2 (diff)
downloadopencode-5384040051397c321d4163a4ac6031d1f6baf6df.tar.gz
opencode-5384040051397c321d4163a4ac6031d1f6baf6df.zip
fix(app): truncate comment text and set card max-width to 200px
-rw-r--r--packages/app/src/components/prompt-input.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx
index 8641cdd27..3f137f862 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 (
<div
classList={{
- "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>
)