diff --git a/components/admin/editors/team-editor.tsx b/components/admin/editors/team-editor.tsx index 809f854..c02ed77 100644 --- a/components/admin/editors/team-editor.tsx +++ b/components/admin/editors/team-editor.tsx @@ -206,7 +206,7 @@ export function TeamImportPreviewCard({ {team.title} - โรเทชั่น {seconds} วิ{sourceLabel ? ` - ${sourceLabel}` : ""} + Rotation {seconds} วิ{sourceLabel ? ` - ${sourceLabel}` : ""} onCheckedChange(value === true)} /> @@ -941,7 +941,7 @@ export function TeamEditor({ className="flex-none" htmlFor={`team-rotation-${team.clientId}`} > - Rotation + โรเทชั่น { ["0.00", "-"], ["120.00", "120%"], ["120.125", "120.13%"], - ["", ""], + ["", "-"], ])("displays %s as %s while preserving its raw draft value", async (raw, display) => { const input = await render(raw); expect(input.value).toBe(display); diff --git a/components/admin/editors/weapon-editor.tsx b/components/admin/editors/weapon-editor.tsx index 72f6e10..14f2111 100644 --- a/components/admin/editors/weapon-editor.tsx +++ b/components/admin/editors/weapon-editor.tsx @@ -30,9 +30,11 @@ import { type EditorBase, hasIssuePrefix, parseEditorDraft, ConditionControls, r function WeaponDamageInput({ value, onFocus, onBlur, ...props }: ComponentProps & { value: string }) { const [focused, setFocused] = useState(false); const numeric = Number(value); - const displayValue = !value.trim() || !Number.isFinite(numeric) - ? value - : weaponComparisonPercent(value) ?? ""; + const displayValue = !value.trim() + ? "-" + : !Number.isFinite(numeric) + ? value + : weaponComparisonPercent(value) ?? "-"; return {team.title} - โรเทชั่น {seconds} วิ + โรเทชั่น {seconds} วินาที {action ? {action} : null} @@ -389,7 +389,7 @@ function TeamCard({
-

{exporting ? "ดาเมจรวม" : "ดาเมจรวมต่อโรเทชั่น"}

+

ดาเมจรวม

{total.toLocaleString()}