mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 14:56:36 +00:00
style(problem): adjust problem layout styles
This commit is contained in:
parent
569beb0b36
commit
30ee16fbf0
@ -9,8 +9,8 @@ interface CodeLayoutProps {
|
||||
|
||||
export default function CodeLayout({ children }: CodeLayoutProps) {
|
||||
return (
|
||||
<div className="flex flex-col h-full">
|
||||
<WorkspaceEditorHeader className="border-b border-x border-muted bg-background" />
|
||||
<div className="flex flex-col h-full border border-t-0 border-muted rounded-b-3xl bg-background">
|
||||
<WorkspaceEditorHeader />
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
|
@ -2,7 +2,7 @@ import { ProblemEditor } from "@/components/problem-editor";
|
||||
|
||||
export default function CodePage() {
|
||||
return (
|
||||
<div className="relative flex-1 border-x border-muted">
|
||||
<div className="relative flex-1">
|
||||
<div className="absolute w-full h-full">
|
||||
<ProblemEditor />
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ interface DescriptionLayoutProps {
|
||||
|
||||
export default function DescriptionLayout({ children }: DescriptionLayoutProps) {
|
||||
return (
|
||||
<div className="h-full flex flex-col">
|
||||
<div className="h-full flex flex-col border border-t-0 border-muted rounded-b-3xl bg-background">
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
|
@ -29,7 +29,7 @@ export default async function DescriptionPage({ params }: DescriptionPageProps)
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="relative flex-1 border-x border-muted">
|
||||
<div className="relative flex-1">
|
||||
<div className="absolute h-full w-full">
|
||||
<ScrollArea className="h-full [&>[data-radix-scroll-area-viewport]>div:min-w-0 [&>[data-radix-scroll-area-viewport]>div]:!block bg-background">
|
||||
<MdxPreview source={problem.description} className="p-4 md:p-6" />
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { Suspense } from "react";
|
||||
import { getUserLocale } from "@/i18n/locale";
|
||||
import { Loading } from "@/components/loading";
|
||||
import DetailsPage from "@/app/(app)/problems/[id]/@Details/page";
|
||||
|
||||
interface DetailsLayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
export default async function DetailsLayout() {
|
||||
const locale = await getUserLocale();
|
||||
|
||||
export default async function DetailsLayout({ children }: DetailsLayoutProps) {
|
||||
return (
|
||||
<div className="flex flex-col h-full border border-t-0 border-muted rounded-b-3xl bg-background">
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
<DetailsPage locale={locale} />;
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
|
@ -7,7 +7,7 @@ interface SolutionsLayoutProps {
|
||||
|
||||
export default async function SolutionsLayout({ children }: SolutionsLayoutProps) {
|
||||
return (
|
||||
<div className="flex flex-col h-full">
|
||||
<div className="flex flex-col h-full border border-t-0 border-muted rounded-b-3xl bg-background">
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
|
@ -29,7 +29,7 @@ export default async function SolutionsPage({ params }: SolutionsPageProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="relative flex-1 border-x border-muted">
|
||||
<div className="relative flex-1">
|
||||
<div className="absolute h-full w-full">
|
||||
<ScrollArea className="h-full [&>[data-radix-scroll-area-viewport]>div:min-w-0 [&>[data-radix-scroll-area-viewport]>div]:!block bg-background">
|
||||
<MdxPreview source={problem.solution} className="p-4 md:p-6" />
|
||||
|
Loading…
Reference in New Issue
Block a user