diff --git a/client/web/src/components/PillTabs.less b/client/web/src/components/PillTabs.less index 996def1eac4..a5b51c30461 100644 --- a/client/web/src/components/PillTabs.less +++ b/client/web/src/components/PillTabs.less @@ -43,5 +43,13 @@ .ant-tabs-content-holder { overflow-x: hidden; overflow-y: auto; + + .ant-tabs-content { + height: 100%; + + .ant-tabs-tabpane { + height: 100%; + } + } } } diff --git a/client/web/src/components/PillTabs.tsx b/client/web/src/components/PillTabs.tsx index 9a30968ddf5..1db03f506c5 100644 --- a/client/web/src/components/PillTabs.tsx +++ b/client/web/src/components/PillTabs.tsx @@ -2,6 +2,7 @@ import { Tabs, TabsProps } from 'antd'; import React from 'react'; import './PillTabs.less'; +import clsx from 'clsx'; /** * @example @@ -9,7 +10,12 @@ import './PillTabs.less'; */ export const PillTabs: React.FC = React.memo((props) => { return ( - + {props.children} ); diff --git a/client/web/src/components/modals/GroupDetail/Member.tsx b/client/web/src/components/modals/GroupDetail/Member.tsx index 7652960da9a..e97bd9338b3 100644 --- a/client/web/src/components/modals/GroupDetail/Member.tsx +++ b/client/web/src/components/modals/GroupDetail/Member.tsx @@ -59,7 +59,7 @@ export const GroupMember: React.FC<{ groupId: string }> = React.memo(
renderUser(item)} /> diff --git a/client/web/src/routes/Main/Content/Personal/Friends/FriendList.tsx b/client/web/src/routes/Main/Content/Personal/Friends/FriendList.tsx index 9ef335ca26c..a1db861c76c 100644 --- a/client/web/src/routes/Main/Content/Personal/Friends/FriendList.tsx +++ b/client/web/src/routes/Main/Content/Personal/Friends/FriendList.tsx @@ -24,6 +24,7 @@ import { Problem } from '@/components/Problem'; import { closeModal, openModal } from '@/components/Modal'; import { SetFriendNickname } from '@/components/modals/SetFriendNickname'; import { Icon } from 'tailchat-design'; +import { Virtuoso } from 'react-virtuoso'; /** * 好友列表 @@ -95,7 +96,7 @@ export const FriendList: React.FC<{ } return ( -
+
{t('好友列表')}
setSearchText(e.target.value)} /> -
- {searchResult.map((item) => ( - -
- handleCreateConverse(item._id)} - /> -
- , -
- handleSetFriendNickname(item._id), - label: isValidStr(item.nickname) - ? t('更改好友昵称') - : t('添加好友昵称'), - }, - { - key: 'delete', - danger: true, - onClick: () => handleRemoveFriend(item._id), - label: t('删除'), - }, - ], - }} - trigger={['click']} - placement="bottomRight" - > +
+ ( +
- + handleCreateConverse(item._id)} + />
- -
, - ]} - /> - ))} + , +
+ handleSetFriendNickname(item._id), + label: isValidStr(item.nickname) + ? t('更改好友昵称') + : t('添加好友昵称'), + }, + { + key: 'delete', + danger: true, + onClick: () => handleRemoveFriend(item._id), + label: t('删除'), + }, + ], + }} + trigger={['click']} + placement="bottomRight" + > +
+ +
+
+
, + ]} + /> + )} + />
); diff --git a/client/web/src/routes/Main/Content/Personal/Friends/index.tsx b/client/web/src/routes/Main/Content/Personal/Friends/index.tsx index 3357c14dae5..587a73693b1 100644 --- a/client/web/src/routes/Main/Content/Personal/Friends/index.tsx +++ b/client/web/src/routes/Main/Content/Personal/Friends/index.tsx @@ -29,6 +29,7 @@ export const FriendPanel: React.FC = React.memo(() => { return (