File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
assets/stylesheets/components Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 224224
225225.attachment-info {
226226 display : flex;
227- gap : var (--spacing-3 );
228227 align-items : center;
229228 font-size : var (--font-size-sm );
230229}
231230
231+ summary .attachment-info {
232+ cursor : pointer;
233+ display : list-item;
234+ }
235+
232236.filename {
233237 font-weight : var (--font-weight-medium );
234238 color : var (--color-text-primary );
235239}
236240
237241.content-type {
238242 color : var (--color-text-muted );
243+ margin-left : var (--spacing-3 );
239244}
240245
241246.import-metadata {
Original file line number Diff line number Diff line change 4141 .message-attachments
4242 h4 Attachments:
4343 - message.attachments.each do |attachment |
44- .attachment
45- .attachment-info
46- span .filename = attachment.file_name
47- span .content-type = attachment.content_type if attachment.content_type
44+ - if attachment.patch?
45+ details class =" attachment"
46+ summary class =" attachment-info"
47+ span .filename = attachment.file_name
48+ span .content-type = attachment.content_type if attachment.content_type
49+ pre class =" attachment-content"
50+ code class =" language-diff"
51+ = attachment.decoded_body
52+ - else
53+ .attachment
54+ .attachment-info
55+ span .filename = attachment.file_name
56+ span .content-type = attachment.content_type if attachment.content_type
4857
4958 - if message.import_log.present?
5059 .import-metadata
You can’t perform that action at this time.
0 commit comments