ui: fixes for metadata list in sessions
This commit is contained in:
parent
ffd134c204
commit
743625f66b
2 changed files with 4 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ export default function MetaMoreButton(props: Props) {
|
||||||
<Popover
|
<Popover
|
||||||
render={() => (
|
render={() => (
|
||||||
<div
|
<div
|
||||||
className="text-sm grid grid-col gap-3 bg-white"
|
className="text-sm grid grid-col gap-2 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,9 +26,7 @@ export default function MetaMoreButton(props: Props) {
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
>
|
>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<Button type="link">
|
<Button type="link" size={'small'} className={'h-[17px]'}>
|
||||||
+{list.length - maxLength}
|
|
||||||
{' '}
|
|
||||||
{t('More')}
|
{t('More')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ export default function SessionMetaList(props: Props) {
|
||||||
const { className = '', metaList, maxLength = 4 } = props;
|
const { className = '', metaList, maxLength = 4 } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn('text-sm flex items-center', className)}>
|
<div className={cn('text-sm flex items-center gap-2', className)}>
|
||||||
{metaList.slice(0, maxLength).map(({ label, value }, index) => (
|
{metaList.slice(0, maxLength).map(({ label, value }, index) => (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<MetaItem label={label} value={`${value}`} className="mr-3" />
|
<MetaItem label={label} value={`${value}`} />
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue