feat(core): remove attachment tooltip (#12467)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Added a tooltip to the delete icon for attachments, displaying a localized description when hovered.
- **Documentation**
  - Updated English localization to include a tooltip label for deleting attachments.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
yoyoyohamapi
2025-05-23 02:50:43 +00:00
parent 119cf9442b
commit 8e8e4032c7
3 changed files with 17 additions and 6 deletions
@@ -131,12 +131,18 @@ const AttachmentItem: React.FC<AttachmentItemProps> = ({
<PersistedItem attachment={attachment} />
) : null}
<div className={attachmentOperation}>
<CloseIcon
data-testid="workspace-embedding-setting-attachment-delete-button"
onClick={handleDelete}
color={cssVarV2('icon/primary')}
style={{ cursor: 'pointer' }}
/>
<Tooltip
content={t[
'com.affine.settings.workspace.indexer-embedding.embedding.additional-attachments.remove-attachment.tooltip'
]()}
>
<CloseIcon
data-testid="workspace-embedding-setting-attachment-delete-button"
onClick={handleDelete}
color={cssVarV2('icon/primary')}
style={{ cursor: 'pointer' }}
/>
</Tooltip>
</div>
</div>
);