Procházet zdrojové kódy

fix: if the conversation name is too long, it will overflow the current item. #607 (#972)

### What problem does this PR solve?

fix: if the conversation name is too long, it will overflow the current
item. #607

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.7.0
balibabu před 1 rokem
rodič
revize
e0d05a3895
Žádný účet není propojen s e-mailovou adresou tvůrce revize
2 změnil soubory, kde provedl 20 přidání a 2 odebrání
  1. 1
    0
      web/src/pages/chat/index.less
  2. 19
    2
      web/src/pages/chat/index.tsx

+ 1
- 0
web/src/pages/chat/index.less Zobrazit soubor



.chatAppContent { .chatAppContent {
overflow-y: auto; overflow-y: auto;
width: 100%;
} }


.chatAppCard { .chatAppCard {

+ 19
- 2
web/src/pages/chat/index.tsx Zobrazit soubor

Space, Space,
Spin, Spin,
Tag, Tag,
Typography,
} from 'antd'; } from 'antd';
import { MenuItemProps } from 'antd/lib/menu/MenuItem'; import { MenuItemProps } from 'antd/lib/menu/MenuItem';
import classNames from 'classnames'; import classNames from 'classnames';
import ChatOverviewModal from './chat-overview-modal'; import ChatOverviewModal from './chat-overview-modal';
import styles from './index.less'; import styles from './index.less';
const { Text } = Typography;
const Chat = () => { const Chat = () => {
const dialogList = useSelectFirstDialogOnMount(); const dialogList = useSelectFirstDialogOnMount();
const { onRemoveDialog } = useDeleteDialog(); const { onRemoveDialog } = useDeleteDialog();
<Space size={15}> <Space size={15}>
<Avatar src={x.icon} shape={'square'} /> <Avatar src={x.icon} shape={'square'} />
<section> <section>
<b>{x.name}</b>
<b>
<Text
ellipsis={{ tooltip: x.name }}
style={{ width: 130 }}
>
{x.name}
</Text>
</b>
<div>{x.description}</div> <div>{x.description}</div>
</section> </section>
</Space> </Space>
})} })}
> >
<Flex justify="space-between" align="center"> <Flex justify="space-between" align="center">
<div>{x.name}</div>
<div>
<Text
ellipsis={{ tooltip: x.name }}
style={{ width: 150 }}
>
{x.name}
</Text>
</div>
{conversationActivated === x.id && x.id !== '' && ( {conversationActivated === x.id && x.id !== '' && (
<section> <section>
<Dropdown <Dropdown

Načítá se…
Zrušit
Uložit