도움말템플릿릿

This commit is contained in:
2025-11-14 14:17:59 +09:00
parent 5d91df405f
commit 85c1a7a5e3
2 changed files with 111 additions and 5 deletions
@@ -299,16 +299,29 @@ export function LNB({
<DialogTrigger asChild>
</DialogTrigger>
<DialogContent className="sm:max-w-[85rem]">
<DialogContent className="sm:max-w-[85rem] max-h-[90vh] flex flex-col">
<DialogHeader>
<DialogTitle>도움말</DialogTitle>
</DialogHeader>
<div className="py-4">
<div className="py-4 overflow-y-auto flex-1 min-h-0">
{helpContent ? (
<div
className="text-sm leading-relaxed text-muted-foreground"
dangerouslySetInnerHTML={{ __html: helpContent }}
/>
style={{
fontSize: '16px',
lineHeight: '1.5',
}}
>
<div
dangerouslySetInnerHTML={{
__html: helpContent
.replace(/<body[^>]*>/gi, '<div>')
.replace(/<\/body>/gi, '</div>')
}}
style={{
fontSize: 'inherit',
}}
/>
</div>
) : (
<p className="text-sm text-muted-foreground">
현재 페이지에 대한 도움말이 없습니다.