fix: read-only rich text — use plain div instead of admin-form-input

admin-form-input has fixed height (36px) causing overflow. Replaced
with a styled div matching the editor appearance. No new CSS needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-24 11:15:51 +01:00
parent 5593c2a229
commit f9cb28afa0
2 changed files with 2 additions and 24 deletions

View File

@@ -1099,9 +1099,8 @@ export default function OfferDetail() {
<label className="admin-form-label">Obsah</label>
{(isInvalidated || isLockedByOther) ? (
<div
className="admin-form-input section-content"
style={{ minHeight: '80px', background: 'var(--bg-primary)', overflow: 'hidden', lineHeight: 1.5, fontSize: '0.875rem' }}
dangerouslySetInnerHTML={{ __html: section.content || '<em>Prázdný obsah</em>' }}
style={{ minHeight: '80px', padding: '0.75rem', background: 'var(--bg-primary)', border: '1px solid var(--border-color)', borderRadius: 'var(--border-radius-sm)', lineHeight: 1.6, fontSize: '0.875rem', color: 'var(--text-primary)' }}
dangerouslySetInnerHTML={{ __html: section.content || '<em style="color: var(--text-tertiary)">Prázdný obsah</em>' }}
/>
) : (
<RichEditor