fix(ui): fix minor ui bugs

This commit is contained in:
shafin-r
2026-02-21 17:06:55 +06:00
parent f054c7179b
commit a48a50ae77
6 changed files with 8 additions and 21 deletions

View File

@ -400,7 +400,7 @@ export const Home = () => {
: "Good evening"; : "Good evening";
return ( return (
<div className="home-screen"> <div className="home-screen pb-12">
<style>{STYLES}</style> <style>{STYLES}</style>
{/* Blobs */} {/* Blobs */}

View File

@ -221,7 +221,7 @@ export const Lessons = () => {
}; };
return ( return (
<div className="ls-screen"> <div className="ls-screen pb-12">
<style>{STYLES}</style> <style>{STYLES}</style>
{/* Blobs */} {/* Blobs */}

View File

@ -243,7 +243,7 @@ export const Practice = () => {
const userXp = useExamConfigStore.getState().userXp; const userXp = useExamConfigStore.getState().userXp;
return ( return (
<div className="pr-screen"> <div className="pr-screen pb-12">
<style>{STYLES}</style> <style>{STYLES}</style>
{/* Blobs */} {/* Blobs */}

View File

@ -232,7 +232,7 @@ export const Profile = () => {
]; ];
return ( return (
<div className="pf-screen"> <div className="pf-screen pb-12">
<style>{STYLES}</style> <style>{STYLES}</style>
{/* Blobs */} {/* Blobs */}

View File

@ -137,7 +137,7 @@ export function StudentLayout() {
<div className="flex flex-col flex-1 min-w-0"> <div className="flex flex-col flex-1 min-w-0">
<SidebarTrigger className="hidden md:block" /> <SidebarTrigger className="hidden md:block" />
{/* Extra bottom padding so content clears the floating dock */} {/* Extra bottom padding so content clears the floating dock */}
<main className="flex-1 pb-32 md:pb-0"> <main className="flex-1 md:pb-0">
<Outlet /> <Outlet />
</main> </main>
</div> </div>

View File

@ -539,17 +539,6 @@ const Confetti = ({ active }: { active: boolean }) => {
); );
}; };
const snapPoints = [
"190px",
"250px",
"300px",
"350px",
"400px",
"500px",
"600px",
"700px",
];
// ─── XP Popup Component ─────────────────────────────────────────────────────── // ─── XP Popup Component ───────────────────────────────────────────────────────
const XPPopup = ({ xp, show }: { xp: number; show: boolean }) => { const XPPopup = ({ xp, show }: { xp: number; show: boolean }) => {
if (!show) return null; if (!show) return null;
@ -636,8 +625,6 @@ export const Test = () => {
const quitExam = useSatExam((s) => s.quitExam); const quitExam = useSatExam((s) => s.quitExam);
const setResults = useResults((s) => s.setResults); const setResults = useResults((s) => s.setResults);
const [snap, setSnap] = useState<number | string | null>(snapPoints[0]);
const startExam = async () => { const startExam = async () => {
console.log("startExam called", { user, sheetId }); console.log("startExam called", { user, sheetId });
if (!user) { if (!user) {
@ -1433,7 +1420,7 @@ export const Test = () => {
{isMCQ && ( {isMCQ && (
<Drawer.Root <Drawer.Root
modal={false} modal={false}
snapPoints={[0.35, 0.6, 0.85]} snapPoints={[0.35, 0.6, 0.95]}
defaultOpen={true} defaultOpen={true}
> >
<Drawer.Portal> <Drawer.Portal>
@ -1451,7 +1438,7 @@ export const Test = () => {
</Drawer.Title> </Drawer.Title>
{/* Scrollable options */} {/* Scrollable options */}
<div className="flex-1 overflow-y-auto px-5 pb-8"> <div className="flex-1 overflow-y-auto px-5 pb-40">
{renderOptions(currentQuestion)} {renderOptions(currentQuestion)}
</div> </div>
</Drawer.Content> </Drawer.Content>