client: update emoji-picker

This commit is contained in:
fantasticit 2022-06-02 17:33:15 +08:00
parent 9c2acfb6fc
commit fa40d87aa4
2 changed files with 6 additions and 7 deletions

View File

@ -5,14 +5,13 @@
.listWrap {
display: flex;
height: 250px;
padding: 0;
margin: 0;
overflow: auto;
list-style: none;
flex-wrap: wrap;
> li {
> div {
display: flex;
justify-content: center;
align-items: center;

View File

@ -82,13 +82,13 @@ export const EmojiPicker: React.FC<IProps> = ({ showClear = false, onSelectEmoji
{renderedList.map((list) => {
return (
<TabPane key={list.title} tab={list.title} itemKey={list.title} style={{ height: 250, overflow: 'auto' }}>
<ul className={styles.listWrap}>
<div className={styles.listWrap}>
{(list.data || []).map((ex) => (
<li key={ex} onClick={() => selectEmoji(ex)}>
<div key={ex} onClick={() => selectEmoji(ex)}>
{ex}
</li>
</div>
))}
</ul>
</div>
</TabPane>
);
})}
@ -114,7 +114,7 @@ export const EmojiPicker: React.FC<IProps> = ({ showClear = false, onSelectEmoji
title={'表情'}
visible={visible}
onCancel={toggleVisible}
height={370}
height={400}
mask={false}
>
{content}