Indentation and formatting

This commit is contained in:
Jeffrey Hardy
2024-09-05 16:58:31 -04:00
parent 40863453e0
commit 0930879ec7
2 changed files with 11 additions and 6 deletions
+9 -3
View File
@@ -13,7 +13,9 @@
</div>
<% end %>
<time class="bubble__bubble bubble__meta bubble__date"><%= bubble.created_at.strftime("%b <br> %d").html_safe %></time>
<time class="bubble__bubble bubble__meta bubble__date">
<%= bubble.created_at.strftime("%b <br> %d").html_safe %>
</time>
<% bubble.tags.each do |tag| %>
<%= link_to "##{tag.title}", bubbles_path(tag_id: tag), class: "bubble__bubble bubble__meta bubble__tag" %>
@@ -28,7 +30,11 @@
<% end %>
<%= tag.div class: "bubble__bubble bubble__meta bubble__boosts",
data: { controller: "animation toggle-class", animation_play_class: "boosting", toggle_class_toggle_class: "boosting", action: "animationend->toggle-class#toggle" } do %>
<turbo-frame id="<%= dom_id(bubble, "boosts") %>" src="<%= bubble_boosts_path(bubble) %>" />
data: {
controller: "animation toggle-class",
animation_play_class: "boosting",
toggle_class_toggle_class: "boosting",
action: "animationend->toggle-class#toggle" } do %>
<%= turbo_frame_tag dom_id(bubble, :boosts), src: bubble_boosts_path(bubble) %>
<% end %>
</div>
+2 -3
View File
@@ -35,11 +35,10 @@
<fieldset class="flex flex-column unpad margin-block-end borderless justify-space-between">
<legend class="for-screen-reader">Attachment</legend>
<label class="input input--file input--picture unpad" data-controller="upload-preview">
<%= image_tag bubble.image.attached? ? bubble.image : "default-picture.webp", alt: "Picture",
<%= image_tag bubble.image.presence || "default-picture.webp", alt: "Picture",
data: { upload_preview_target: "image" } %>
<%= form.file_field :image, class: "input", accept: "image/png, image/jpeg, image/jpg, image/webp",
data: { upload_preview_target: "input", action: "upload-preview#previewImage" } %>
data: { upload_preview_target: "input", action: "upload-preview#previewImage" } %>
</label>
</fieldset>