diff --git a/assets/css/ticket.css b/assets/css/ticket.css index a852321..bd6b5f4 100644 --- a/assets/css/ticket.css +++ b/assets/css/ticket.css @@ -584,6 +584,8 @@ textarea.editable { background: var(--bg-secondary); cursor: default; border-color: transparent; + overflow: hidden; + resize: none; } /* Button Styles */ diff --git a/assets/js/ticket.js b/assets/js/ticket.js index ec3c6ab..e2d26a5 100644 --- a/assets/js/ticket.js +++ b/assets/js/ticket.js @@ -86,6 +86,8 @@ function toggleEditMode() { // Enable description (textarea) if (descriptionField) { descriptionField.disabled = false; + descriptionField.style.height = 'auto'; + descriptionField.style.height = descriptionField.scrollHeight + 'px'; } // Enable metadata fields (priority, category, type) @@ -1036,7 +1038,6 @@ function showMentionSuggestions(query, textarea) { mentionAutocomplete.innerHTML = html; mentionAutocomplete.classList.add('active'); - const textarea = document.getElementById('newComment'); if (textarea) textarea.setAttribute('aria-expanded', 'true'); selectedMentionIndex = 0; diff --git a/views/DashboardView.php b/views/DashboardView.php index 9007fe4..d27c50b 100644 --- a/views/DashboardView.php +++ b/views/DashboardView.php @@ -144,7 +144,7 @@ $nonce = SecurityHeadersMiddleware::getNonce(); @@ -161,7 +161,7 @@ $nonce = SecurityHeadersMiddleware::getNonce(); diff --git a/views/TicketView.php b/views/TicketView.php index 0fe805f..2eb76a6 100644 --- a/views/TicketView.php +++ b/views/TicketView.php @@ -246,14 +246,14 @@ $nonce = SecurityHeadersMiddleware::getNonce();
+
diff --git a/views/admin/RecurringTicketsView.php b/views/admin/RecurringTicketsView.php index ec8fca6..3bb7ab1 100644 --- a/views/admin/RecurringTicketsView.php +++ b/views/admin/RecurringTicketsView.php @@ -81,7 +81,7 @@ $nonce = SecurityHeadersMiddleware::getNonce(); $schedule .= ' (Day ' . $rt['schedule_day'] . ')'; } $schedule .= ' @ ' . substr($rt['schedule_time'], 0, 5); - echo $schedule; + echo htmlspecialchars($schedule); ?>