Refactor inline comment architecture across plan/files/diff and fix diff overlay rendering (#461)

This commit is contained in:
Nelson Pires
2026-02-20 23:20:33 +02:00
committed by GitHub
parent 49170fe242
commit 2e08501ea5
10 changed files with 812 additions and 511 deletions
@@ -17,6 +17,7 @@ interface InlineCommentCardProps {
onEdit: () => void;
onDelete: () => void;
className?: string;
maxWidth?: number;
}
export function InlineCommentCard({
@@ -24,6 +25,7 @@ export function InlineCommentCard({
onEdit,
onDelete,
className,
maxWidth,
}: InlineCommentCardProps) {
const themeContext = useOptionalThemeSystem();
const currentTheme = themeContext?.currentTheme;
@@ -42,6 +44,7 @@ export function InlineCommentCard({
style={{
backgroundColor: currentTheme?.colors?.surface?.elevated,
borderColor: currentTheme?.colors?.interactive?.border,
maxWidth: maxWidth ? `${Math.max(200, Math.floor(maxWidth))}px` : undefined,
}}
data-comment-card="true"
>