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
|
<Popover
|
||||||
render={() => (
|
render={() => (
|
||||||
<div
|
<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' }}
|
style={{ maxHeight: '200px', overflowY: 'auto' }}
|
||||||
>
|
>
|
||||||
{list.slice(maxLength).map(({ label, value }, index) => (
|
{list.slice(maxLength).map(({ label, value }, index) => (
|
||||||
|
|
@ -26,7 +26,7 @@ export default function MetaMoreButton(props: Props) {
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
>
|
>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<Button size={'small'} variant="text">
|
<Button type="link">
|
||||||
+{list.length - maxLength}
|
+{list.length - maxLength}
|
||||||
{' '}
|
{' '}
|
||||||
{t('More')}
|
{t('More')}
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ function SessionItem(props: RouteComponentProps & Props) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{_metaList.length > 0 && (
|
{_metaList.length > 0 && (
|
||||||
<SessionMetaList metaList={_metaList} />
|
<SessionMetaList maxLength={1} metaList={_metaList} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue