fix: 修复topic列表过长会导致新增按钮位置错误的问题

pull/70/head
moonrailgun 2 years ago
parent 381c09c3ff
commit 43969e23dd

@ -33,6 +33,11 @@ const Root = styled(LoadingOnFirst)({
paddingTop: 80,
},
'.list': {
height: '100%',
overflow: 'auto',
},
'.create-btn': {
position: 'absolute',
right: 20,
@ -146,7 +151,7 @@ const GroupTopicPanelRender: React.FC = React.memo(() => {
return (
<Root spinning={loading}>
{Array.isArray(topicList) && topicList.length > 0 ? (
<>
<div className="list">
{topicList.map((item, i) => (
<TopicCard key={i} topic={item} />
))}
@ -160,7 +165,7 @@ const GroupTopicPanelRender: React.FC = React.memo(() => {
{Translate.noMore}
</Button>
)}
</>
</div>
) : (
<Empty description={Translate.noTopic}>
<Button type="primary" onClick={handleCreateTopic}>

Loading…
Cancel
Save