From 39e05118ffae4e8ac184dc435cfaf8d244eebea7 Mon Sep 17 00:00:00 2001 From: QuentinHsu Date: Wed, 3 Jun 2026 18:27:40 +0800 Subject: [PATCH] fix(model-pricing): align pricing mode editor spacing - add consistent tab and field spacing so each pricing mode keeps the same visual rhythm. - wrap per-request and tiered sections in shared field groups to match the per-token form structure. - keep fixed-price descriptions and validation messages aligned with the updated field layout. --- .../models/tiered-pricing-editor.tsx | 61 ++++++++++--------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx b/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx index e1d54339..784e4d7b 100644 --- a/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx +++ b/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx @@ -40,6 +40,7 @@ import { CollapsibleContent, CollapsibleTrigger, } from '@/components/ui/collapsible' +import { Field, FieldLabel } from '@/components/ui/field' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { @@ -1309,9 +1310,7 @@ function PresetSection({ applyPreset }: PresetSectionProps) { return (
- - {t('Preset templates')} - + {t('Preset templates')} {hasMore && (