Skip to content

Commit 4e5ddb9

Browse files
committed
fix/Reimplement search icon
1 parent 7fc75f4 commit 4e5ddb9

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

app/views/folders/index.html.erb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
<div class="flex justify-between mb-4 relative">
1616
<div class="flex-1">
1717
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
18-
<!-- Heroicon name: solid/mail -->
19-
<%= image_tag '/icons/grey/search.svg', class: 'text-gray-400 h-5 w-5' %>
20-
<%# <svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
21-
<path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
22-
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
23-
</svg> %>
18+
<%= render partial: 'shared/icons/search', locals: { width: 5, height: 5, color: 'text-gray-400' } %>
2419
</div>
2520
<input
2621
type="text"
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 fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path>
3+
</svg>

app/views/snippets/index.html.erb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
<div class="mb-4 relative">
44
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
5-
<!-- Heroicon name: solid/mail -->
6-
<%= image_tag '/icons/grey/search.svg', class: 'text-gray-400 h-5 w-5' %>
7-
<%# <svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
8-
<path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
9-
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
10-
</svg> %>
5+
<%= render partial: 'shared/icons/search', locals: { width: 5, height: 5, color: 'text-gray-400' } %>
116
</div>
127
<input
138
type="text"

0 commit comments

Comments
 (0)