Fix: Home and team page style adjustment, and some bug fixes #10703 (#10805)

### What problem does this PR solve?

Fix: Home and team page style adjustment, and some bug fixes #10703

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-10-27 15:15:12 +08:00
committed by GitHub
parent 33a189f620
commit 5312b75362
26 changed files with 628 additions and 276 deletions

View File

@ -1,3 +1,4 @@
import { HomeCard } from '@/components/home-card';
import { MoreButton } from '@/components/more-button';
import { RenameDialog } from '@/components/rename-dialog';
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
@ -5,7 +6,6 @@ import { useFetchDialogList } from '@/hooks/use-chat-request';
import { useTranslation } from 'react-i18next';
import { ChatDropdown } from '../next-chats/chat-dropdown';
import { useRenameChat } from '../next-chats/hooks/use-rename-chat';
import { ApplicationCard } from './application-card';
export function ChatList() {
const { t } = useTranslation();
@ -24,12 +24,11 @@ export function ChatList() {
return (
<>
{data.dialogs.slice(0, 10).map((x) => (
<ApplicationCard
<HomeCard
key={x.id}
app={{
data={{
avatar: x.icon,
title: x.name,
update_time: x.update_time,
...x,
}}
onClick={navigateToChat(x.id)}
moreDropdown={
@ -37,7 +36,7 @@ export function ChatList() {
<MoreButton></MoreButton>
</ChatDropdown>
}
></ApplicationCard>
></HomeCard>
))}
{chatRenameVisible && (
<RenameDialog