mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
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:
+12
-6
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user