From a508d44ecf801d71851794e0cd666a4abde3b820 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sat, 7 Feb 2026 18:59:24 +0100 Subject: [PATCH] Compact problems --- src/app/problems/components/ProblemCard.tsx | 39 ++++++++++----------- src/app/run/page.tsx | 2 +- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/src/app/problems/components/ProblemCard.tsx b/src/app/problems/components/ProblemCard.tsx index e9239fe..2a9f5b8 100644 --- a/src/app/problems/components/ProblemCard.tsx +++ b/src/app/problems/components/ProblemCard.tsx @@ -1,4 +1,5 @@ import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; import { Problem } from "@/modules/problems/types"; import { Clock, Zap, Users, Code } from "lucide-react"; @@ -53,21 +54,7 @@ const ProblemCard = ({ {/* Tags / Meta */} -
- {problem.language && ( - - {problem.language} - - )} -
- - {/* Description */} -

- {problem.description} -

- - {/* Stats + Action */} -
+
{bestTime && (
@@ -81,12 +68,22 @@ const ProblemCard = ({
- {/* Quick run button */} -
- -
+ {problem.language && ( + + {problem.language} + + )} +
+ + {/* Description */} +

+ {problem.description} +

+ +
+
diff --git a/src/app/run/page.tsx b/src/app/run/page.tsx index a43d804..aa5b2ca 100644 --- a/src/app/run/page.tsx +++ b/src/app/run/page.tsx @@ -43,7 +43,7 @@ export default function Run() { {runInfo && } -
+