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: fix unclickable gap in groups #25

Merged
merged 1 commit into from
Sep 2, 2024
Merged
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
22 changes: 11 additions & 11 deletions src/components/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ export const GroupsAccordion = ({
(course) =>
course.registrationName === registrationName && (
<div key={course.name}>
<div className="grid grid-cols-[1fr_4fr_1fr] items-center justify-between gap-4 break-all p-4 py-2 text-base hover:cursor-pointer hover:bg-stone-300">
<div className="grid grid-cols-[1fr_5fr] items-center justify-between break-all p-4 py-2 text-base hover:cursor-pointer hover:bg-stone-300">
<div className="flex h-[50px] w-[50px] items-center justify-center rounded-[50px] bg-secondary">
{course.name.slice(0, 1).toUpperCase()}
</div>
<label
htmlFor={`${index}-${course.name}`}
className="hover:cursor-pointer"
className="ml-4 flex justify-between hover:cursor-pointer"
>
{course.name}
<input
id={`${index}-${course.name}`}
type="checkbox"
onChange={() => {
onClick(course.name);
}}
className="h-6 w-6 cursor-pointer"
checked={course.isChecked}
/>
</label>
<input
id={`${index}-${course.name}`}
type="checkbox"
onChange={() => {
onClick(course.name);
}}
className="h-6 w-6 cursor-pointer justify-self-end"
checked={course.isChecked}
/>
</div>
</div>
),
Expand Down
Loading