From f88bea775ca1c72f2e03070b415b9dbda4046893 Mon Sep 17 00:00:00 2001 From: yu-zhen Date: Thu, 12 Dec 2024 02:10:55 +0800 Subject: [PATCH] fix: adjust ui styling --- .../features/ballot/components/ProjectAvatarWithName.tsx | 6 ++++-- .../interface/src/features/rounds/components/RoundItem.tsx | 2 +- .../interface/src/features/rounds/components/RoundsList.tsx | 2 +- packages/interface/src/pages/index.tsx | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx b/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx index 4dfd3ebd..cdf47d20 100644 --- a/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx +++ b/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx @@ -29,12 +29,14 @@ export const ProjectAvatarWithName = ({ return ( - +
+ +
{metadata.data?.name}
-
+

{showDescription && (metadata.data?.bio ?? null)}

{allocation > 0 && `Votes you have allocated: ${allocation}`}

diff --git a/packages/interface/src/features/rounds/components/RoundItem.tsx b/packages/interface/src/features/rounds/components/RoundItem.tsx index 2add1831..d9cac9cb 100644 --- a/packages/interface/src/features/rounds/components/RoundItem.tsx +++ b/packages/interface/src/features/rounds/components/RoundItem.tsx @@ -72,7 +72,7 @@ export const RoundItem = ({ round }: IRoundItemProps): JSX.Element => { {round.roundId} -

{round.description}

+
{round.description}
diff --git a/packages/interface/src/features/rounds/components/RoundsList.tsx b/packages/interface/src/features/rounds/components/RoundsList.tsx index c21b1612..c598e369 100644 --- a/packages/interface/src/features/rounds/components/RoundsList.tsx +++ b/packages/interface/src/features/rounds/components/RoundsList.tsx @@ -7,7 +7,7 @@ export const RoundsList = (): JSX.Element => { const { rounds } = useRound(); return ( -
+
{rounds?.map((round) => )}
); diff --git a/packages/interface/src/pages/index.tsx b/packages/interface/src/pages/index.tsx index d1a3b6f9..3e11451a 100644 --- a/packages/interface/src/pages/index.tsx +++ b/packages/interface/src/pages/index.tsx @@ -26,8 +26,8 @@ const HomePage = (): JSX.Element => { {singleRound && } {!singleRound && ( -
- +
+ {config.eventName}