fix: chat input file list remove button style

This commit is contained in:
StyleZhang 2024-10-11 10:33:19 +08:00
parent faec1c50f9
commit 9f492d527a
4 changed files with 11 additions and 3 deletions

View File

@ -135,11 +135,11 @@ const ChatInputArea = ({
<>
<div
className={cn(
'relative py-[9px] bg-components-panel-bg-blur border border-components-chat-input-border rounded-xl shadow-md z-10',
'relative pb-[9px] bg-components-panel-bg-blur border border-components-chat-input-border rounded-xl shadow-md z-10',
isDragActive && 'border border-dashed border-components-option-card-option-selected-border',
)}
>
<div className='relative px-[9px] max-h-[158px] overflow-x-hidden overflow-y-auto'>
<div className='relative px-[9px] pt-[9px] max-h-[158px] overflow-x-hidden overflow-y-auto'>
<FileListInChatInput fileConfig={visionConfig!} />
<div
ref={wrapperRef}

View File

@ -258,7 +258,7 @@ const ImagePreview: FC<ImagePreviewProps> = ({
<RiAddBoxLine className='w-4 h-4 text-gray-500'/>
</div>
</Tooltip>
<Tooltip popupContent={t('common.operation.close')}>
<Tooltip popupContent={t('common.operation.cancel')}>
<div
className='absolute top-6 right-6 flex items-center justify-center w-8 h-8 bg-white/8 rounded-lg backdrop-blur-[2px] cursor-pointer'
onClick={onCancel}>

View File

@ -38,6 +38,10 @@ const translation = {
duplicate: 'Duplicate',
rename: 'Rename',
audioSourceUnavailable: 'AudioSource is unavailable',
copyImage: 'Copy Image',
zoomOut: 'Zoom Out',
zoomIn: 'Zoom In',
openInNewTab: 'Open in new tab',
},
errorMsg: {
fieldRequired: '{{field}} is required',

View File

@ -38,6 +38,10 @@ const translation = {
duplicate: '复制',
rename: '重命名',
audioSourceUnavailable: '音源不可用',
copyImage: '复制图片',
zoomOut: '缩小',
zoomIn: '放大',
openInNewTab: '在新标签页打开',
},
errorMsg: {
fieldRequired: '{{field}} 为必填项',