Skip to content

Commit

Permalink
Fixed spacing for project entry when ranking > 10 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZhao21 authored Sep 11, 2024
1 parent 2c0d967 commit ea73aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/judge/ProjectEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const ProjectEntry = ({ project, ranking }: ProjectEntryProps) => {
return (
<div className="flex items-center cursor-default">
{ranking !== -1 && (
<p className={twMerge('font-bold text-xl mr-2 w-3', rankColor)}>{ranking}</p>
<p className={twMerge('font-bold text-xl text-center w-6 shrink-0', rankColor)}>{ranking}</p>
)}
<div className="m-1 px-2 py-1 bg-background border-solid border-2 border-lightest rounded-md grow">
<div className="m-1 pl-2 py-1 bg-background border-solid border-2 border-lightest rounded-md grow">
<div className="flex flex-row">
<div>
<h3 className="text-xl grow">
Expand Down

0 comments on commit ea73aa2

Please sign in to comment.