chore(version): 1.0.2

This commit is contained in:
kangfenmao 2025-03-01 11:37:57 +08:00
parent 78a7b2759e
commit 94d9b79957
4 changed files with 25 additions and 14 deletions

View File

@ -81,8 +81,9 @@ afterPack: scripts/after-pack.js
afterSign: scripts/notarize.js
releaseInfo:
releaseNotes: |
Web 搜索增加更多配置选项
用户消息支持快速重新发送
知识库网址支持右键配置别名
支持更多类型的思考内容显示
知识库错误修复
服务商新增天翼云
助手支持使用模型图标当作头像
网络搜索网站图标快速加载
macOS 移除 Option 开头快捷键限制
代理配置优化
界面优化和错误修复

View File

@ -1,6 +1,6 @@
{
"name": "CherryStudio",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",

View File

@ -1,6 +1,6 @@
import FileManager from '@renderer/services/FileManager'
import { FileType } from '@renderer/types'
import { Upload } from 'antd'
import { Upload as AntdUpload, UploadFile } from 'antd'
import { isEmpty } from 'lodash'
import { FC } from 'react'
import styled from 'styled-components'
@ -19,12 +19,15 @@ const AttachmentPreview: FC<Props> = ({ files, setFiles }) => {
<ContentContainer>
<Upload
listType={files.length > 20 ? 'text' : 'picture-card'}
fileList={files.map((file) => ({
uid: file.id,
url: 'file://' + FileManager.getSafePath(file),
status: 'done',
name: file.name
}))}
fileList={files.map(
(file) =>
({
uid: file.id,
url: 'file://' + FileManager.getSafePath(file),
status: 'done',
name: file.name
}) as UploadFile
)}
onRemove={(item) => setFiles(files.filter((file) => item.uid !== file.id))}
/>
</ContentContainer>
@ -38,4 +41,10 @@ const ContentContainer = styled.div`
padding: 10px 15px 0;
`
const Upload = styled(AntdUpload)`
.ant-upload-list-item {
background-color: var(--color-background);
}
`
export default AttachmentPreview

View File

@ -653,7 +653,8 @@ const InputBarContainer = styled.div`
border: 0.5px solid var(--color-border);
transition: all 0.3s ease;
position: relative;
margin: 15px 20px;
margin: 14px 20px;
margin-top: 12px;
border-radius: 15px;
background-color: var(--color-background-opacity);
`