ui: restrict meta list to 1
This commit is contained in:
parent
b8d365de3d
commit
90bc6bc83e
2 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ export default function MetaMoreButton(props: Props) {
|
|||
<Popover
|
||||
render={() => (
|
||||
<div
|
||||
className="text-sm grid grid-col p-4 gap-3 bg-white"
|
||||
className="text-sm grid grid-col gap-3 bg-white"
|
||||
style={{ maxHeight: '200px', overflowY: 'auto' }}
|
||||
>
|
||||
{list.slice(maxLength).map(({ label, value }, index) => (
|
||||
|
|
@ -26,7 +26,7 @@ export default function MetaMoreButton(props: Props) {
|
|||
placement="bottom"
|
||||
>
|
||||
<div className="flex items-center">
|
||||
<Button size={'small'} variant="text">
|
||||
<Button type="link">
|
||||
+{list.length - maxLength}
|
||||
{' '}
|
||||
{t('More')}
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ function SessionItem(props: RouteComponentProps & Props) {
|
|||
</div>
|
||||
</div>
|
||||
{_metaList.length > 0 && (
|
||||
<SessionMetaList metaList={_metaList} />
|
||||
<SessionMetaList maxLength={1} metaList={_metaList} />
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue