From a48a50ae776c46e6e3a6eaf0f00a3f444b785347 Mon Sep 17 00:00:00 2001 From: shafin-r Date: Sat, 21 Feb 2026 17:06:55 +0600 Subject: [PATCH] fix(ui): fix minor ui bugs --- src/pages/student/Home.tsx | 2 +- src/pages/student/Lessons.tsx | 2 +- src/pages/student/Practice.tsx | 2 +- src/pages/student/Profile.tsx | 2 +- src/pages/student/StudentLayout.tsx | 2 +- src/pages/student/practice/Test.tsx | 19 +++---------------- 6 files changed, 8 insertions(+), 21 deletions(-) diff --git a/src/pages/student/Home.tsx b/src/pages/student/Home.tsx index 741db3a..aa3df36 100644 --- a/src/pages/student/Home.tsx +++ b/src/pages/student/Home.tsx @@ -400,7 +400,7 @@ export const Home = () => { : "Good evening"; return ( -
+
{/* Blobs */} diff --git a/src/pages/student/Lessons.tsx b/src/pages/student/Lessons.tsx index e2bd61f..b8c6840 100644 --- a/src/pages/student/Lessons.tsx +++ b/src/pages/student/Lessons.tsx @@ -221,7 +221,7 @@ export const Lessons = () => { }; return ( -
+
{/* Blobs */} diff --git a/src/pages/student/Practice.tsx b/src/pages/student/Practice.tsx index 3df657a..51b518b 100644 --- a/src/pages/student/Practice.tsx +++ b/src/pages/student/Practice.tsx @@ -243,7 +243,7 @@ export const Practice = () => { const userXp = useExamConfigStore.getState().userXp; return ( -
+
{/* Blobs */} diff --git a/src/pages/student/Profile.tsx b/src/pages/student/Profile.tsx index c9fa851..1aec53a 100644 --- a/src/pages/student/Profile.tsx +++ b/src/pages/student/Profile.tsx @@ -232,7 +232,7 @@ export const Profile = () => { ]; return ( -
+
{/* Blobs */} diff --git a/src/pages/student/StudentLayout.tsx b/src/pages/student/StudentLayout.tsx index 8ca07d9..aa3bae0 100644 --- a/src/pages/student/StudentLayout.tsx +++ b/src/pages/student/StudentLayout.tsx @@ -137,7 +137,7 @@ export function StudentLayout() {
{/* Extra bottom padding so content clears the floating dock */} -
+
diff --git a/src/pages/student/practice/Test.tsx b/src/pages/student/practice/Test.tsx index 2ba79f3..03fe386 100644 --- a/src/pages/student/practice/Test.tsx +++ b/src/pages/student/practice/Test.tsx @@ -539,17 +539,6 @@ const Confetti = ({ active }: { active: boolean }) => { ); }; -const snapPoints = [ - "190px", - "250px", - "300px", - "350px", - "400px", - "500px", - "600px", - "700px", -]; - // ─── XP Popup Component ─────────────────────────────────────────────────────── const XPPopup = ({ xp, show }: { xp: number; show: boolean }) => { if (!show) return null; @@ -636,8 +625,6 @@ export const Test = () => { const quitExam = useSatExam((s) => s.quitExam); const setResults = useResults((s) => s.setResults); - const [snap, setSnap] = useState(snapPoints[0]); - const startExam = async () => { console.log("startExam called", { user, sheetId }); if (!user) { @@ -1433,12 +1420,12 @@ export const Test = () => { {isMCQ && ( {/* Drag handle */} @@ -1451,7 +1438,7 @@ export const Test = () => { {/* Scrollable options */} -
+
{renderOptions(currentQuestion)}