ui: restrict meta list to 1

This commit is contained in:
nick-delirium 2025-03-07 17:12:41 +01:00
parent b8d365de3d
commit 90bc6bc83e
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 3 additions and 3 deletions

View file

@ -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')}

View file

@ -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>
)} )}