fix(ui): fix minor ui bugs
This commit is contained in:
@ -84,7 +84,7 @@ export const Home = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-gray-50 space-y-6 max-w-full mx-auto px-8 sm:px-6 lg:px-90 py-12">
|
||||
<main className="min-h-screen bg-gray-50 space-y-6 mx-auto px-8 sm:px-6 lg:px-90 py-12">
|
||||
<h1 className="text-4xl font-satoshi-bold tracking-tight text-gray-800 text-center">
|
||||
Welcome, {user?.name || "Student"}
|
||||
</h1>
|
||||
|
||||
@ -14,7 +14,7 @@ export function StudentLayout() {
|
||||
|
||||
return (
|
||||
<SidebarProvider>
|
||||
<div className="min-h-screen flex w-full">
|
||||
<div className="min-h-screen flex">
|
||||
{/* Desktop Sidebar */}
|
||||
<AppSidebar />
|
||||
<main className="flex-1">
|
||||
|
||||
@ -237,7 +237,7 @@ export const Test = () => {
|
||||
if (question.options && question.options.length > 0) {
|
||||
const eliminatedSet = eliminated[question.id] ?? new Set();
|
||||
return (
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="flex flex-col gap-4 w-full">
|
||||
{question.options.map((option, index) => {
|
||||
const isSelected = currentAnswer === option.id;
|
||||
const isEliminated = eliminatedSet.has(option.id);
|
||||
@ -245,7 +245,7 @@ export const Test = () => {
|
||||
return (
|
||||
<div
|
||||
key={option.id}
|
||||
className={`flex flex-row-reverse items-center gap-4 transition
|
||||
className={`flex flex-row-reverse items-center gap-4
|
||||
|
||||
`}
|
||||
>
|
||||
@ -407,28 +407,28 @@ export const Test = () => {
|
||||
<h1 className="text-lg text-center font-satoshi">
|
||||
{currentModule?.module_title}
|
||||
</h1>
|
||||
{/* <p className="text-sm font-satoshi text-gray-500">
|
||||
{practiceSheet?.modules[0].description}
|
||||
</p> */}
|
||||
<p className="text-sm font-satoshi text-gray-500"></p>
|
||||
</header>
|
||||
</section>
|
||||
<div className="border border-purple-300"></div>
|
||||
{currentQuestion?.context && (
|
||||
<section className="h-100 overflow-y-auto px-10 pt-30">
|
||||
<p className="font-satoshi tracking-wide text-lg">
|
||||
{renderQuestionText(currentQuestion?.context)}
|
||||
<section className="flex">
|
||||
{currentQuestion?.context && (
|
||||
<section className="h-100 w-1/2 overflow-y-auto px-10 pt-30">
|
||||
<p className="font-satoshi tracking-wide text-lg">
|
||||
{renderQuestionText(currentQuestion?.context)}
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<div className="border border-purple-200 h-full"></div>
|
||||
<section
|
||||
className={`w-1/2 px-10 ${currentQuestion?.context ? "" : "pt-26"}`}
|
||||
>
|
||||
<p className="font-satoshi-medium text-xl">
|
||||
{currentQuestion?.text &&
|
||||
renderQuestionText(currentQuestion.text)}
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<div className="border border-purple-200"></div>
|
||||
<section
|
||||
className={`px-10 ${currentQuestion?.context ? "" : "pt-26"}`}
|
||||
>
|
||||
<p className="font-satoshi-medium text-xl">
|
||||
{currentQuestion?.text &&
|
||||
renderQuestionText(currentQuestion.text)}
|
||||
</p>
|
||||
</section>
|
||||
<section className="overflow-y-auto max-h-100 md:max-h-fit px-10 pb-20">
|
||||
{renderAnswerInput(currentQuestion)}
|
||||
|
||||
Reference in New Issue
Block a user