fix(ui): page not suitable for big screen

This commit is contained in:
ReaJason
2025-09-12 22:51:50 +08:00
parent ab3f7d1043
commit 842200280d
6 changed files with 79 additions and 67 deletions
@@ -12,9 +12,11 @@ import {
export function MultiPackResult({
allPackResults,
packMethod,
height = 350,
}: Readonly<{
allPackResults: object | undefined;
packMethod: string;
height?: number;
}>) {
const showCode = packMethod === "JSP";
const { t } = useTranslation();
@@ -67,7 +69,7 @@ export function MultiPackResult({
wrapLongLines={!showCode}
showLineNumbers={showCode}
language={showCode ? "java" : "text"}
height={350}
height={height}
/>
);
}
@@ -27,6 +27,7 @@ export default function ShellResult({
return <QuickUsage />;
}
const showCode = packMethod === "JSP";
const height = 550;
return (
<Tabs defaultValue="packResult">
<TabsList className="grid w-full grid-cols-1">
@@ -40,6 +41,7 @@ export default function ShellResult({
<MultiPackResult
allPackResults={allPackResults}
packMethod={packMethod}
height={height}
/>
)}
{packResult && (
@@ -58,7 +60,7 @@ export default function ShellResult({
wrapLongLines={!showCode}
showLineNumbers={showCode}
language={showCode ? "java" : "text"}
height={350}
height={height}
/>
)}
</TabsContent>