<%= image_tag bubble.image.presence || "", data: { upload_preview_target: "image" } %>
<% if bubble.image.attached? %> <%= button_to project_bubble_image_path(bubble.project, bubble), method: :delete, class: "btn btn--plain", style: "--btn-icon-size: 3em; margin-block-start: -0.5em; margin-inline-end: -0.2em" do %> Remove image <% end %> <% else %> <%= form_with model: bubble, url: project_bubble_path(bubble.project, bubble), data: { controller: "form" } do |form| %> <% end %> <% end %>