refactor(comments): unconditionally delete S3 attachment objects directly

This commit is contained in:
yiling
2026-07-16 10:59:14 +08:00
parent ecfbfc2bac
commit e978878a90
3 changed files with 4 additions and 11 deletions
@@ -14,8 +14,8 @@ const EditableText = React.forwardRef<HTMLInputElement, EditableTextProps>(
className={cn(
'h-auto min-h-0 w-full rounded-sm border px-1 py-0.5 text-base shadow-none transition-all outline-none focus-visible:ring-0',
!disabled
? 'border-blue-500 bg-muted/10 ring-1 ring-blue-500'
: 'border-transparent bg-transparent cursor-default opacity-100 focus-visible:border-transparent focus-visible:ring-0 caret-transparent select-none',
? 'border-blue-500 !bg-muted/10 ring-1 ring-blue-500'
: 'border-transparent !bg-transparent cursor-default opacity-100 focus-visible:border-transparent focus-visible:ring-0 caret-transparent select-none',
className,
)}
onClick={(e) => {
@@ -194,7 +194,7 @@ export const CompareImagePane = forwardRef<ComparePaneHandle, CompareImagePanePr
return (
<div
ref={containerRef}
className="relative flex-1 overflow-hidden bg-gray-100 dark:bg-gray-950"
className="relative flex-1 overflow-hidden bg-black"
onMouseDown={onActivate}
>
<DrawingCanvas