From b685f6eb2edb5ee7171bc000853dd5980c6bf68b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 10 Feb 2024 18:04:41 +0300 Subject: [PATCH] Keep adjacent page icon width integer --- app/helpers/svg_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/svg_helper.rb b/app/helpers/svg_helper.rb index 9c02fc1d9..bc12ff223 100644 --- a/app/helpers/svg_helper.rb +++ b/app/helpers/svg_helper.rb @@ -44,7 +44,7 @@ module SvgHelper height = 15 pad = 2 segment = (0.5 * height) - pad - width = segment + (2 * pad) + width = (segment + (2 * pad)).ceil path_data = "M#{side * (pad - (0.5 * width))},#{pad} l#{side * segment},#{segment} l#{-side * segment},#{segment}" path_tag = tag.path :d => path_data, :fill => "none", :stroke => "currentColor", :"stroke-width" => 1.5 tag.svg path_tag, :width => width, :height => height, :viewBox => "-#{0.5 * width} 0 #{width} #{height}", :class => options[:class] -- 2.39.5