Skip to content

Commit

Permalink
dark mode fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Crisgarner authored and ctrlc03 committed Nov 7, 2024
1 parent 6c15c8c commit a641915
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/interface/src/components/TimeSlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface TimeSlotProps {

export const TimeSlot = ({ num, unit }: TimeSlotProps): JSX.Element => (
<div className="flex flex-1 flex-col items-center">
<p className="text-2xl">
<p className="text-2xl dark:text-white">
<b>{num}</b>
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export const ProjectAvatarWithName = ({
const { data: projects } = useProjectById(id, registryAddress);

const metadata = useProjectMetadata(projects?.metadataUrl);
const description =
metadata.data?.bio && metadata.data.bio.length > 140
? `${metadata.data.bio.substring(0, 140)}...`
: metadata.data?.bio;

const Component = isLink ? Link : "div";

Expand All @@ -35,7 +39,7 @@ export const ProjectAvatarWithName = ({
<div className="font-bold uppercase dark:text-white">{metadata.data?.name}</div>

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

<p>{allocation > 0 && `Votes you have allocated: ${allocation}`}</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/interface/src/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const LayoutWithSidebar = ({ ...props }: ILayoutProps): JSX.Element => {
/>

{showSubmitButton && ballot.votes.length > 0 && (
<div className="flex flex-col gap-4">
<div className="mt-4 flex flex-col gap-4">
<SubmitBallotButton pollId={props.pollId ?? ""} />

<Notice
Expand Down

0 comments on commit a641915

Please sign in to comment.