06/09 Fix request reply UI

This commit is contained in:
2026-06-09 16:43:32 -04:00
parent e1d749a3c1
commit d00caf0886
+6 -23
View File
@@ -1,22 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Support Request #{{ ticket.id }}{% endblock %} {% block title %}Support Request #{{ ticket.id }}{% endblock %}
{% block extra_css %}
<style>
.reply-bubble {
max-width: 85%;
padding: .65rem 1rem;
border-radius: 1rem;
font-size: .9rem;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.6;
}
.reply-staff { background:#d1ecf1; border-bottom-right-radius:.25rem; align-self:flex-end; }
#reply-thread { display:flex; flex-direction:column; gap:.75rem; }
</style>
{% endblock %}
{% block content %} {% block content %}
<div class="mb-3"> <div class="mb-3">
<a href="{{ url_for('support.my_tickets') }}" class="btn btn-sm btn-outline-secondary"> <a href="{{ url_for('support.my_tickets') }}" class="btn btn-sm btn-outline-secondary">
@@ -57,14 +41,13 @@
<div class="card-body"> <div class="card-body">
<div id="reply-thread"> <div id="reply-thread">
{% for reply in replies %} {% for reply in replies %}
<div class="d-flex flex-column"> <div class="border rounded p-3 bg-light">
<div class="reply-bubble reply-staff ms-auto"> <div class="text-muted small mb-2">
<div class="text-muted small mb-1"> <i class="bi bi-person-badge me-1"></i>
<strong>{{ reply.author.display_name if reply.author else 'Support Team' }}</strong> <strong>{{ reply.author.display_name if reply.author else 'Support Team' }}</strong>
&nbsp;·&nbsp;{{ reply.created_at.strftime('%b %d, %Y %I:%M %p') }} &nbsp;·&nbsp;{{ reply.created_at.strftime('%b %d, %Y %I:%M %p') }}
</div>
{{ reply.body }}
</div> </div>
<div style="white-space:pre-wrap;word-break:break-word;">{{ reply.body }}</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>