Commit 9174020f14f622fcd5ae57bc7bcba0d067c0e88a
1 parent
b3b9b756
Exists in
master
and in
4 other branches
Fix event image preview
Showing
3 changed files
with
9 additions
and
7 deletions
Show diff stats
app/assets/stylesheets/sections/events.scss
@@ -68,12 +68,10 @@ | @@ -68,12 +68,10 @@ | ||
68 | margin: 0 20px; | 68 | margin: 0 20px; |
69 | } | 69 | } |
70 | 70 | ||
71 | - .note-file-attach { | ||
72 | - .note-image-attach { | ||
73 | - margin-top: 4px; | ||
74 | - margin-left: 0px; | ||
75 | - max-width: 200px; | ||
76 | - } | 71 | + .note-image-attach { |
72 | + margin-top: 4px; | ||
73 | + margin-left: 0px; | ||
74 | + max-width: 200px; | ||
77 | } | 75 | } |
78 | } | 76 | } |
79 | .event-note-icon { | 77 | .event-note-icon { |
app/helpers/events_helper.rb
app/views/events/event/_note.html.haml
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | .event-note | 10 | .event-note |
11 | .md | 11 | .md |
12 | %i.icon-comment-alt.event-note-icon | 12 | %i.icon-comment-alt.event-note-icon |
13 | - = sanitize(markdown(truncate(event.target.note, length: 150)), tags: %w(a img b pre p)) | 13 | + = event_note(event.target.note) |
14 | - note = event.target | 14 | - note = event.target |
15 | - if note.attachment.url | 15 | - if note.attachment.url |
16 | - if note.attachment.image? | 16 | - if note.attachment.image? |