Unverified Commit a4481a3f authored by Joel's avatar Joel Committed by GitHub

fix: prompt no blank too long break ui (#81)

parent 15f93257
...@@ -73,7 +73,7 @@ const PromptValuePanel: FC<IPromptValuePanelProps> = ({ ...@@ -73,7 +73,7 @@ const PromptValuePanel: FC<IPromptValuePanelProps> = ({
{ {
(promptTemplate && promptTemplate?.trim()) ? ( (promptTemplate && promptTemplate?.trim()) ? (
<div <div
className="max-h-48 overflow-y-auto text-sm text-gray-700" className="max-h-48 overflow-y-auto text-sm text-gray-700 break-all"
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: format(replaceStringWithValuesWithFormat(promptTemplate, promptVariables, inputs)), __html: format(replaceStringWithValuesWithFormat(promptTemplate, promptVariables, inputs)),
}} }}
......
...@@ -63,7 +63,7 @@ const BlockInput: FC<IBlockInputProps> = ({ ...@@ -63,7 +63,7 @@ const BlockInput: FC<IBlockInputProps> = ({
}, [isEditing]) }, [isEditing])
const style = classNames({ const style = classNames({
'block px-4 py-1 w-full h-full text-sm text-gray-900 outline-0 border-0': true, 'block px-4 py-1 w-full h-full text-sm text-gray-900 outline-0 border-0 break-all': true,
'block-input--editing': isEditing, 'block-input--editing': isEditing,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment