fix: 프론트엔드 모달 순서도 변경 - 주의사항 마지막으로

This commit is contained in:
thug0bin 2026-03-04 20:54:20 +09:00
parent 836be958db
commit 71c35433fc

View File

@ -1159,12 +1159,6 @@
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.dosage_instructions)}</p>
</div>` : ''}
${info.precautions ? `
<div style="margin-bottom:12px;background:#fef2f2;padding:12px;border-radius:8px;">
<h5 style="margin:0 0 6px;color:#dc2626;">▶ 주의사항</h5>
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.precautions.substring(0, 800))}${info.precautions.length > 800 ? '...' : ''}</p>
</div>` : ''}
${info.dosing_interval ? `
<div style="margin-bottom:12px;background:#faf5ff;padding:12px;border-radius:8px;border:2px solid #c084fc;">
<h5 style="margin:0 0 6px;color:#7c3aed;">▶ 투약 주기 ⭐</h5>
@ -1177,6 +1171,12 @@
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;">${escapeHtml(info.companion_drugs)}</p>
</div>` : ''}
${info.precautions ? `
<div style="margin-bottom:12px;background:#fef2f2;padding:12px;border-radius:8px;">
<h5 style="margin:0 0 6px;color:#dc2626;">▶ 주의사항</h5>
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.precautions.substring(0, 800))}${info.precautions.length > 800 ? '...' : ''}</p>
</div>` : ''}
<div style="display:flex;gap:10px;margin-top:20px;">
<button onclick="document.getElementById('animalDrugModal').remove()"
style="flex:1;padding:10px;border:1px solid #e2e8f0;background:#fff;border-radius:6px;cursor:pointer;">닫기</button>