diff --git a/src/app/components/previews/DialogPreview.tsx b/src/app/components/previews/DialogPreview.tsx index 01808b93..23c3a1ee 100644 --- a/src/app/components/previews/DialogPreview.tsx +++ b/src/app/components/previews/DialogPreview.tsx @@ -1,7 +1,7 @@ import { Identifier, ItemStack } from 'deepslate' import type { ComponentChild, ComponentChildren } from 'preact' import { useEffect, useRef, useState } from 'preact/hooks' -import { safeJsonParse } from '../../Utils.js' +import { clamp, safeJsonParse } from '../../Utils.js' import { ItemDisplay } from '../ItemDisplay.jsx' import { TextComponent } from '../TextComponent.jsx' import type { PreviewProps } from './index.js' @@ -62,22 +62,20 @@ function DialogBody({ body }: { body: any }) { {body?.map((b: any) => { const type = b.type?.replace(/^minecraft:/, '') if (type === 'plain_message') { - // TODO: make this text wrap - return