Skip to content

Commit f14b003

Browse files
committed
fix/Implement more button as svg partial
1 parent 5d46e43 commit f14b003

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/views/shared/_popover_trigger.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<%= yield content %>
1010
<% else %>
1111
<div class="more-button">
12-
<%= image_tag "/icons/more.svg", width: 12 %>
12+
<%= render partial: 'shared/icons/more', locals: { width: 4, height: 4, color: '' } %>
1313
</div>
1414
<% end %>
1515
</div>
@@ -21,7 +21,7 @@
2121
class="position-<%= defined?(position) ? position : 'relative' %>"
2222
>
2323
<div class="more-button">
24-
<%= image_tag "/icons/more.svg", width: 12 %>
24+
<%= render partial: 'shared/icons/more', locals: { width: 4, height: 4, color: '' } %>
2525
</div>
2626
</div>
2727
<% end %>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<svg class="w-<%= width %> h-<%= height %> <%= color %>" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2+
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"></path>
3+
</svg>

0 commit comments

Comments
 (0)