diff --git a/components/image-params-bar.tsx b/components/image-params-bar.tsx index 4095edbfc..0cd0bbf11 100644 --- a/components/image-params-bar.tsx +++ b/components/image-params-bar.tsx @@ -184,15 +184,15 @@ export function ImageParamsBar({ if (!wRaw || !hRaw) { return ; } - const maxSide = 22; + const maxSide = 14; let width = maxSide; let height = maxSide; if (wRaw >= hRaw) { width = maxSide; - height = Math.max(8, Math.round((maxSide * hRaw) / wRaw)); + height = Math.max(6, Math.round((maxSide * hRaw) / wRaw)); } else { height = maxSide; - width = Math.max(8, Math.round((maxSide * wRaw) / hRaw)); + width = Math.max(6, Math.round((maxSide * wRaw) / hRaw)); } return ( @@ -235,7 +235,7 @@ export function ImageParamsBar({ // 内联模式:只返回参数按钮,嵌入工具栏 if (inline) { const ratioLabel = params.aspectRatio === "auto" ? "智能比例" : params.aspectRatio; - const sizeLabel = params.imageSize === "4K" ? "超清 4K" : `高清 ${params.imageSize}`; + const sizeLabel = params.imageSize === "4K" ? "超清4K" : `高清${params.imageSize}`; const outputSize = getComputedOutputSize(params.aspectRatio, params.imageSize); return ( @@ -244,17 +244,17 @@ export function ImageParamsBar({ @@ -262,28 +262,28 @@ export function ImageParamsBar({ align="start" side="top" sideOffset={10} - className="w-[620px] max-w-[calc(100vw-32px)] rounded-[24px] border border-[#d8dde4] bg-[#f3f4f6]/90 p-4 shadow-[0_14px_36px_rgba(15,23,42,0.16)]" + className="w-[312px] max-w-[calc(100vw-24px)] rounded-[14px] border border-[#d8dde4] bg-[#f3f4f6]/90 p-2 shadow-[0_10px_24px_rgba(15,23,42,0.14)]" > -
+
-

选择比例

-
+

选择比例

+
{ASPECT_RATIO_OPTIONS.map((option) => ( @@ -292,23 +292,23 @@ export function ImageParamsBar({
-

选择分辨率

-
+

选择分辨率

+
{IMAGE_SIZE_OPTIONS.filter((option) => !option.disabled).map((option) => ( ))} @@ -316,22 +316,22 @@ export function ImageParamsBar({
-

尺寸

-
-
+

尺寸

+
+
- W - {outputSize.width} + W + {outputSize.width}
- -
+ +
- H - {outputSize.height} + H + {outputSize.height}
- PX + PX