Skip to content

Commit 5f1e754

Browse files
committed
feat: 更新图标
1 parent 79de9ec commit 5f1e754

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

3.08 KB
Loading

src/frontend/client/src/components/Chat/Messages/Content/SearchWebUrls.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export default function SearchWebUrls({ webs }) {
2525
</button>
2626
</DialogTrigger>
2727

28-
<DialogContent className="absolute bottom-4 right-4 w-96 px-6 bg-white shadow-lg rounded-lg">
28+
<DialogContent className="absolute flex flex-col bottom-4 right-4 w-[440px] px-6 bg-white shadow-lg rounded-lg h-[92vh]">
2929
<DialogHeader className="text-md px-0">
3030
<DialogTitle>搜索结果</DialogTitle>
3131
</DialogHeader>
32-
<div className="space-y-4">
33-
<div className="overflow-scroll h-96 dark:text-gray-300">
32+
<div className="flex-1 pb-10 overflow-hidden flex flex-col">
33+
<div className="flex-1 overflow-y-auto dark:text-gray-300">
3434
{webs.map((web) => <WebItem key={web.url} {...web} />)}
3535
</div>
3636
</div>
@@ -47,8 +47,8 @@ export const WebItem = ({ url, title, snippet }: { url: string; title: string; s
4747
};
4848

4949
return (
50-
<div className="max-w-xs">
51-
<a href={url} target="_blank" className="block p-2 hover:bg-gray-50 dark:hover:bg-gray-700 ">
50+
<div className="max-w-[440px]">
51+
<a href={url} target="_blank" className="block p-2 rounded-md hover:bg-gray-50 dark:hover:bg-gray-700 ">
5252
<div className="cursor-pointer">
5353
{/* URL */}
5454
<span className="text-sm text-gray-400">{url}</span>

src/frontend/client/src/components/Chat/Messages/MessagesView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function MessagesView({
9292
}}
9393
aria-label={localize('com_ui_new_chat')}
9494
>
95-
<MessagesSquareIcon size={18} />
95+
<img className='size-5' src={__APP_ENV__.BASE_URL + '/assets/chat.png'} alt="" />
9696
<span className="text-sm">{localize('com_ui_new_chat')}</span>
9797
</button>
9898
</div>

src/frontend/client/src/components/Nav/NewChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default function NewChat({
113113
onClick={clickHandler}
114114
aria-label={localize('com_ui_new_chat')}
115115
>
116-
<MessagesSquareIcon />
116+
<img className='size-6' src={__APP_ENV__.BASE_URL + '/assets/chat.png'} alt="" />
117117
<span className="text-sm">{localize('com_ui_new_chat')}</span>
118118
</button>
119119
</div>

src/frontend/client/src/data-provider/data-provider/src/data-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export const listConversations = (
732732
})),
733733
pageNumber: pageNumber,
734734
pageSize: 40,
735-
pages: Infinity // Math.round(total / 40)
735+
pages: list.length === 40 ? Number(pageNumber) + 1 : pageNumber // Math.round(total / 40)
736736
}
737737
});
738738
};

0 commit comments

Comments
 (0)