app/views/resolve/_cover_image.html.erb in umlaut-3.3.1 vs app/views/resolve/_cover_image.html.erb in umlaut-4.0.0.beta1

- old
+ new

@@ -14,13 +14,13 @@ # # generally the 'max-height' is our operative maximum for ordinary ratios, # but we let the width be more than the height for weird ratio'd covers # that are wider than square. dimensions_style = { - "small" => "max-height: 80px; max-width: 100px;", - "medium" => "max-height: 160px; max-width: 200px;", - "large" => "max-height: 200px; max-width: 240px;", - "extra-large" => "max-height: 475px; max-width: 570px;" } + "small" => "max-height: 80px; max-width: 100px; box-sizing: content-box;", + "medium" => "max-height: 160px; max-width: 200px; box-sizing: content-box;", + "large" => "max-height: 200px; max-width: 240px; box-sizing: content-box;", + "extra-large" => "max-height: 475px; max-width: 570px; box-sizing: content-box;" } img_st = cover_image_response(size) if img_st img_data = img_st.view_data img_params = {'src'=>img_data[:url], \ No newline at end of file