Skip to content

Commit 72ec886

Browse files
refactor: 🛠️ Improve layout and styling of HintCard component
1 parent e54048b commit 72ec886

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/HintCard.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ import { Button } from "@/components/ui/button";
1515
export function HintCard({ hints }: { hints: string[] }) {
1616
return (
1717
<AlertDialog>
18-
<AlertDialogTrigger asChild className="w-36rem rounded-none">
18+
<AlertDialogTrigger asChild className="w-48rem rounded-none">
1919
<Button className="text-black hover:bg-purple-700 bg-white hover:text-white" variant="outline">Hints</Button>
2020
</AlertDialogTrigger>
21-
<AlertDialogContent className="max-w-36rem backdrop-blur bg-opacity-100 border border-gray-100 text-white">
21+
<AlertDialogContent className="max-h-[50%] max-w-[600px] w-full backdrop-blur bg-opacity-100 border border-gray-100 text-white">
2222
<AlertDialogHeader>
2323
<AlertDialogTitle className="w-16 px-2 bg-purple-500">Hints</AlertDialogTitle>
2424
</AlertDialogHeader>
25-
<AlertDialogDescription className="rounded-none">
25+
<AlertDialogDescription className="p-4 dark:text-white text-black">
2626
<div>
2727
<ul className="list-outside list-disc">
2828
{hints.slice(0, 3).map((hint, index) => (
29-
<li key={index} className="mb-2 text-white text-wrap text-sm">{String(hint)}</li>
29+
<li key={index} className="mb-2 dark:text-white text-black text-wrap text-sm">{String(hint)}</li>
3030
))}
3131
</ul>
3232
</div>
3333
</AlertDialogDescription>
34-
<AlertDialogFooter className="rounded-none">
35-
<AlertDialogCancel className="rounded-none">Close</AlertDialogCancel>
34+
<AlertDialogFooter className="rounded-none dark:text-white text-black">
35+
<AlertDialogCancel >Close</AlertDialogCancel>
3636
</AlertDialogFooter>
3737
</AlertDialogContent>
3838
</AlertDialog>

0 commit comments

Comments
 (0)