Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust ui styling #549

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ export const ProjectAvatarWithName = ({

return (
<Component className="flex flex-1 items-center gap-4" href={`/rounds/${pollId}/${id}`} tabIndex={-1}>
<ProjectAvatar rounded="full" size="sm" url={metadata.data?.profileImageUrl} />
<div className="h-12 w-12">
<ProjectAvatar rounded="full" size="sm" url={metadata.data?.profileImageUrl} />
</div>

<div>
<div className="font-bold uppercase dark:text-white">{metadata.data?.name}</div>

<div className="text-sm text-gray-400">
<div className="max-h-10 overflow-scroll text-sm text-gray-400">
<p>{showDescription && (metadata.data?.bio ?? null)}</p>

<p>{allocation > 0 && `Votes you have allocated: ${allocation}`}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const RoundItem = ({ round }: IRoundItemProps): JSX.Element => {
{round.roundId}
</Heading>

<p className="my-4 text-gray-400">{round.description}</p>
<div className="my-4 h-16 overflow-scroll text-gray-400">{round.description}</div>

<RoundTag state={roundState} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const RoundsList = (): JSX.Element => {
const { rounds } = useRound();

return (
<div className="grid grid-cols-1 gap-4 px-16 py-4 sm:grid-cols-3">
<div className="grid grid-cols-1 gap-4 px-16 py-4 md:grid-cols-2 lg:grid-cols-3">
{rounds?.map((round) => <RoundItem key={round.pollId} round={round} />)}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions packages/interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const HomePage = (): JSX.Element => {
{singleRound && <SingleRoundHome round={singleRound} />}

{!singleRound && (
<div className="flex h-auto w-screen flex-col items-center justify-center gap-4 bg-blue-50 px-2 pb-4 sm:h-[90vh] dark:bg-black">
<Heading className="mt-4 max-w-screen-lg text-center sm:mt-0" size="6xl">
<div className="flex h-auto w-screen flex-col items-center justify-center gap-4 bg-blue-50 px-2 pb-4 sm:min-h-[90vh] dark:bg-black">
<Heading className="mt-4 max-w-screen-lg text-center sm:mt-8" size="6xl">
{config.eventName}
</Heading>

Expand Down
Loading