app/components/avo/fields/common/gravatar_viewer_component.html.erb in avo-2.12.1.pre.1 vs app/components/avo/fields/common/gravatar_viewer_component.html.erb in avo-2.13.0
- old
+ new
@@ -7,6 +7,6 @@
options[:size] = @size if @size.present?
query = options.map { |key, value| "#{key}=#{value}" }.join('&')
url = URI::HTTPS.build(host: "www.gravatar.com", path: "/avatar/#{@md5}", query: query)
classes = @rounded ? 'rounded-full' : ''
%>
-<%= link_to_if @link_to_resource.present?, image_tag(url.to_s, class: classes), @link, title: @title %>
+<%= link_to_if @link_to_resource.present?, image_tag(url.to_s, class: classes, width: options[:size], height: options[:size]), @link, title: @title %>