浏览代码

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

tags/0.2.2
Joel 2 年前
父节点
当前提交
a4481a3f29
没有帐户链接到提交者的电子邮件

+ 1
- 1
web/app/components/app/configuration/prompt-value-panel/index.tsx 查看文件

{ {
(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)),
}} }}

+ 1
- 1
web/app/components/base/block-input/index.tsx 查看文件

}, [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,
}) })



正在加载...
取消
保存