mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-26 00:41:52 +08:00
fix(ui): page not suitable for big screen
This commit is contained in:
Binary file not shown.
+7
-7
@@ -17,21 +17,21 @@
|
|||||||
"@biomejs/biome": "2.1.4",
|
"@biomejs/biome": "2.1.4",
|
||||||
"@react-router/dev": "^7.8.2",
|
"@react-router/dev": "^7.8.2",
|
||||||
"@types/node": "^24.3.0",
|
"@types/node": "^24.3.0",
|
||||||
"@types/react": "^19.1.11",
|
"@types/react": "^19.1.12",
|
||||||
"@types/react-copy-to-clipboard": "^5.0.7",
|
"@types/react-copy-to-clipboard": "^5.0.7",
|
||||||
"@types/react-dom": "^19.1.7",
|
"@types/react-dom": "^19.1.9",
|
||||||
"@types/react-syntax-highlighter": "^15.5.13",
|
"@types/react-syntax-highlighter": "^15.5.13",
|
||||||
"@vitejs/plugin-react": "^5.0.1",
|
"@vitejs/plugin-react": "^5.0.2",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"tailwindcss": "^4.1.12",
|
"tailwindcss": "^4.1.12",
|
||||||
"typescript": "^5.9.2",
|
"typescript": "^5.9.2",
|
||||||
"vite": "^7.1.3",
|
"vite": "^7.1.4",
|
||||||
"vite-bundle-visualizer": "^1.2.1"
|
"vite-bundle-visualizer": "^1.2.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^5.2.1",
|
"@hookform/resolvers": "^5.2.1",
|
||||||
"@tailwindcss/vite": "^4.1.12",
|
"@tailwindcss/vite": "^4.1.12",
|
||||||
"@tanstack/react-query": "^5.85.5",
|
"@tanstack/react-query": "^5.85.9",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"framer-motion": "^12.23.12",
|
"framer-motion": "^12.23.12",
|
||||||
@@ -43,13 +43,13 @@
|
|||||||
"react-copy-to-clipboard": "^5.1.0",
|
"react-copy-to-clipboard": "^5.1.0",
|
||||||
"react-dom": "^19.1.1",
|
"react-dom": "^19.1.1",
|
||||||
"react-hook-form": "^7.62.0",
|
"react-hook-form": "^7.62.0",
|
||||||
"react-i18next": "^15.7.2",
|
"react-i18next": "^15.7.3",
|
||||||
"react-router": "^7.8.2",
|
"react-router": "^7.8.2",
|
||||||
"react-router-dom": "^7.8.2",
|
"react-router-dom": "^7.8.2",
|
||||||
"react-syntax-highlighter": "^15.6.6",
|
"react-syntax-highlighter": "^15.6.6",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"tailwind-merge": "^3.3.1",
|
"tailwind-merge": "^3.3.1",
|
||||||
"tw-animate-css": "^1.3.7",
|
"tw-animate-css": "^1.3.8",
|
||||||
"yup": "^1.7.0"
|
"yup": "^1.7.0"
|
||||||
},
|
},
|
||||||
"trustedDependencies": [
|
"trustedDependencies": [
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ import {
|
|||||||
export function MultiPackResult({
|
export function MultiPackResult({
|
||||||
allPackResults,
|
allPackResults,
|
||||||
packMethod,
|
packMethod,
|
||||||
|
height = 350,
|
||||||
}: Readonly<{
|
}: Readonly<{
|
||||||
allPackResults: object | undefined;
|
allPackResults: object | undefined;
|
||||||
packMethod: string;
|
packMethod: string;
|
||||||
|
height?: number;
|
||||||
}>) {
|
}>) {
|
||||||
const showCode = packMethod === "JSP";
|
const showCode = packMethod === "JSP";
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -67,7 +69,7 @@ export function MultiPackResult({
|
|||||||
wrapLongLines={!showCode}
|
wrapLongLines={!showCode}
|
||||||
showLineNumbers={showCode}
|
showLineNumbers={showCode}
|
||||||
language={showCode ? "java" : "text"}
|
language={showCode ? "java" : "text"}
|
||||||
height={350}
|
height={height}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export default function ShellResult({
|
|||||||
return <QuickUsage />;
|
return <QuickUsage />;
|
||||||
}
|
}
|
||||||
const showCode = packMethod === "JSP";
|
const showCode = packMethod === "JSP";
|
||||||
|
const height = 550;
|
||||||
return (
|
return (
|
||||||
<Tabs defaultValue="packResult">
|
<Tabs defaultValue="packResult">
|
||||||
<TabsList className="grid w-full grid-cols-1">
|
<TabsList className="grid w-full grid-cols-1">
|
||||||
@@ -40,6 +41,7 @@ export default function ShellResult({
|
|||||||
<MultiPackResult
|
<MultiPackResult
|
||||||
allPackResults={allPackResults}
|
allPackResults={allPackResults}
|
||||||
packMethod={packMethod}
|
packMethod={packMethod}
|
||||||
|
height={height}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{packResult && (
|
{packResult && (
|
||||||
@@ -58,7 +60,7 @@ export default function ShellResult({
|
|||||||
wrapLongLines={!showCode}
|
wrapLongLines={!showCode}
|
||||||
showLineNumbers={showCode}
|
showLineNumbers={showCode}
|
||||||
language={showCode ? "java" : "text"}
|
language={showCode ? "java" : "text"}
|
||||||
height={350}
|
height={height}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
|
|||||||
@@ -122,10 +122,12 @@ export default function MemShellPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className="bg-background">
|
||||||
|
<div className="container mx-auto max-w-7xl p-4">
|
||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<form
|
<form
|
||||||
onSubmit={form.handleSubmit(onSubmit)}
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
className="flex flex-col xl:flex-row gap-4 p-4"
|
className="flex flex-col xl:flex-row gap-6"
|
||||||
>
|
>
|
||||||
<div className="w-full xl:w-1/2 space-y-4">
|
<div className="w-full xl:w-1/2 space-y-4">
|
||||||
<MainConfigCard
|
<MainConfigCard
|
||||||
@@ -153,5 +155,7 @@ export default function MemShellPage() {
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,12 +100,14 @@ export default function ProbeShellGenerator() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
|
<div className="bg-background">
|
||||||
|
<div className="container mx-auto max-w-7xl p-4">
|
||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<form
|
<form
|
||||||
onSubmit={form.handleSubmit(onSubmit)}
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
className="flex flex-col xl:flex-row gap-4 p-4"
|
className="flex flex-col xl:flex-row gap-6"
|
||||||
>
|
>
|
||||||
<div className="w-full xl:w-1/2 space-y-4">
|
<div className="w-full xl:w-1/2 space-y-6">
|
||||||
<MainConfigCard form={form} servers={serverConfig} />
|
<MainConfigCard form={form} servers={serverConfig} />
|
||||||
<PackageConfigCard form={form} packerConfig={packerConfig} />
|
<PackageConfigCard form={form} packerConfig={packerConfig} />
|
||||||
<Button className="w-full" type="submit" disabled={isActionPending}>
|
<Button className="w-full" type="submit" disabled={isActionPending}>
|
||||||
@@ -117,7 +119,7 @@ export default function ProbeShellGenerator() {
|
|||||||
{t("probeshell:buttons.generate")}
|
{t("probeshell:buttons.generate")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full xl:w-1/2 space-y-4">
|
<div className="w-full xl:w-1/2 space-y-6">
|
||||||
<ShellResult
|
<ShellResult
|
||||||
packMethod={packMethod}
|
packMethod={packMethod}
|
||||||
generateResult={generateResult}
|
generateResult={generateResult}
|
||||||
@@ -127,5 +129,7 @@ export default function ProbeShellGenerator() {
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user