Skip to content

Commit

Permalink
Remove unused turbo_stream. Fix concats.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jun 1, 2024
1 parent 20f8155 commit 0af1265
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/mo/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@
padding: 1rem !important;
}

.p-4 {
padding: 1.5rem !important;
}

.p-5 {
padding: 3rem !important;
}

.p-5px {
padding: 5px !important;
}
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/carousel_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def carousel_heading(title, links = "")

def carousel_no_images_message
tag.div(:show_observation_no_images.l,
class: "p-4 w-100 h-100 text-center h3 text-muted")
class: "p-4 my-5 w-100 h-100 text-center h3 text-muted")
end
end
1 change: 0 additions & 1 deletion app/views/controllers/observations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ carousel_locals = {

<div class="row">
<div class="col-xs-12 col-md-8 col-lg-7 float-sm-left">
<%= turbo_stream_from(@observation, :images) %>
<%= tag.div(class: "panel panel-default") do
render(partial: "shared/carousel", locals: carousel_locals)
end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/controllers/shared/_carousel.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ if !images.nil? && images.any?
) if thumbnails
end
else
concat(carousel_no_images_message)
carousel_no_images_message
end
%>

0 comments on commit 0af1265

Please sign in to comment.