From 6530ab1fd39bc70ebc694937de494ed8251e67f8 Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 8 Jul 2022 09:58:10 +0200 Subject: [PATCH] fix(ui): fix meta popup --- .../MetaMoreButton/MetaMoreButton.tsx | 16 ++++++++-------- .../SessionMetaList/SessionMetaList.tsx | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/app/components/shared/SessionItem/MetaMoreButton/MetaMoreButton.tsx b/frontend/app/components/shared/SessionItem/MetaMoreButton/MetaMoreButton.tsx index e425cd9ae..0b6450f86 100644 --- a/frontend/app/components/shared/SessionItem/MetaMoreButton/MetaMoreButton.tsx +++ b/frontend/app/components/shared/SessionItem/MetaMoreButton/MetaMoreButton.tsx @@ -10,14 +10,8 @@ export default function MetaMoreButton(props: Props) { const { list, maxLength } = props return ( - - +{list.length - maxLength} More - - - ) } className="p-0" + theme="light" content={
{list.slice(maxLength).map(({ label, value }, index) => ( @@ -27,6 +21,12 @@ export default function MetaMoreButton(props: Props) { } on="click" position="center center" - /> + > +
+ + +{list.length - maxLength} More + +
+ ) } diff --git a/frontend/app/components/shared/SessionItem/SessionMetaList/SessionMetaList.tsx b/frontend/app/components/shared/SessionItem/SessionMetaList/SessionMetaList.tsx index b843134c5..599eac3e2 100644 --- a/frontend/app/components/shared/SessionItem/SessionMetaList/SessionMetaList.tsx +++ b/frontend/app/components/shared/SessionItem/SessionMetaList/SessionMetaList.tsx @@ -12,6 +12,7 @@ interface Props { export default function SessionMetaList(props: Props) { const { className = '', metaList, maxLength = 4 } = props + return (
{metaList.slice(0, maxLength).map(({ label, value }, index) => (