From 1f718dadc57f6213c5a9068463b10052d997f96b Mon Sep 17 00:00:00 2001 From: Sherin Thomas Date: Mon, 2 Feb 2026 16:19:11 +0530 Subject: [PATCH] Fix responsiveness of the DSA page --- .../components/dsa/questions/QuestionView.jsx | 202 +++++++++--------- .../src/components/dsa/topics/TopicView.jsx | 131 ++++++------ frontend/src/pages/DsaDashboard.jsx | 16 +- 3 files changed, 172 insertions(+), 177 deletions(-) diff --git a/frontend/src/components/dsa/questions/QuestionView.jsx b/frontend/src/components/dsa/questions/QuestionView.jsx index a9492ea..ce284a3 100644 --- a/frontend/src/components/dsa/questions/QuestionView.jsx +++ b/frontend/src/components/dsa/questions/QuestionView.jsx @@ -48,69 +48,67 @@ export function QuestionsView({ selectedTopic, onBack }) { }; const difficulties = ["All", "Easy", "Medium", "Hard"]; - + return ( -
+
{/* ---------- HEADER ---------- */} -
+
{/* Back Button */} -
+
{/* Topic Tag */} -
+
{/* ---------- SEARCH + FILTER ---------- */} -
+
-
-

+

+

FILTER BY DIFFICULTY

-
+
{difficulties.map((diff) => (