Liitteiden näyttö Zammad-viesteissä + download proxy
- dbLoadTickets: attachments & zammad_article_id mukaan viestidataan - ticket_detail on-demand: liitteiden metadata talteen (sama kuin sync) - Uusi zammad_attachment proxy-endpoint liitteiden lataukseen - JS: liitteet näkyvät tikettiviesteissä (ikoni, nimi, koko, latauslinkki) - CSS: .msg-attachments ja .msg-attachment-link tyylit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
32
style.css
32
style.css
@@ -1478,6 +1478,38 @@ span.empty {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* Viestien liitteet */
|
||||
.msg-attachments {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem;
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
border-top: 1px solid rgba(0,0,0,0.08);
|
||||
}
|
||||
.msg-attachment-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.3rem 0.6rem;
|
||||
background: rgba(255,255,255,0.7);
|
||||
border: 1px solid rgba(0,0,0,0.12);
|
||||
border-radius: 6px;
|
||||
font-size: 0.8rem;
|
||||
color: #2563eb;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.msg-attachment-link:hover {
|
||||
background: rgba(37,99,235,0.08);
|
||||
border-color: #2563eb;
|
||||
}
|
||||
.msg-att-size {
|
||||
color: #888;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* Ticket reply form */
|
||||
.ticket-reply-form {
|
||||
padding-top: 1rem;
|
||||
|
||||
Reference in New Issue
Block a user