add prompt display
This commit is contained in:
parent
7fb539383b
commit
71d5bc4528
@ -210,6 +210,23 @@ const PageComponent = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* Prompt display panel */}
|
||||||
|
<div className={"w-[90%] mx-auto mt-2 mb-6"}>
|
||||||
|
<div className="bg-[#ffffff0d] border border-[#ffffff1f] rounded-lg p-4 text-white">
|
||||||
|
<div>
|
||||||
|
<div className="text-sm text-[#7c8aaa] mb-1">{commonText.prompt}</div>
|
||||||
|
<p className="whitespace-pre-wrap break-words text-base leading-relaxed">{workDetail.input_text}</p>
|
||||||
|
</div>
|
||||||
|
{
|
||||||
|
workDetail?.revised_text && workDetail.revised_text !== workDetail.input_text ? (
|
||||||
|
<div className="mt-4">
|
||||||
|
<div className="text-sm text-[#7c8aaa] mb-1">{commonText.revised}</div>
|
||||||
|
<p className="whitespace-pre-wrap break-words text-base leading-relaxed">{workDetail.revised_text}</p>
|
||||||
|
</div>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<h2
|
<h2
|
||||||
className={"w-[80%] mx-auto text-white pt-4 text-xl md:text-4xl flex justify-center items-center"}>{detailText.h2Text}</h2>
|
className={"w-[80%] mx-auto text-white pt-4 text-xl md:text-4xl flex justify-center items-center"}>{detailText.h2Text}</h2>
|
||||||
<div className={"w-[90%] mx-auto mb-20"}>
|
<div className={"w-[90%] mx-auto mb-20"}>
|
||||||
|
Loading…
Reference in New Issue
Block a user