Skip to content

Commit 5f73c55

Browse files
Update search_by_image.js
1 parent 6aac6d5 commit 5f73c55

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

search_by_image.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,17 @@
162162
var searchButton = $('.head .open--search, .head__button.open--search');
163163
if (searchButton.length === 0) { setTimeout(addHeaderButton, 1000); return; }
164164

165+
/* Чистий SVG без трансформацій — відповідає стилю нативних іконок Lampa */
165166
var svgIcon =
166-
'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill="none">' +
167-
'<g><g transform="matrix(0.539435,0,0,0.554343,18.8769,18.1628)">' +
168-
'<svg width="64px" height="64px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" x="-41.22351" y="-38.89616">' +
169-
'<g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><g><g>' +
170-
'<path fill="none" d="m0,0l24,0l0,24l-24,0l0,-24z"/>' +
171-
'<path d="m3,3l2,0l0,2l-2,0l0,-2zm4,0l2,0l0,2l-2,0l0,-2zm4,0l2,0l0,2l-2,0l0,-2zm4,0l2,0l0,2l-2,0l0,-2zm4,0l2,0l0,2l-2,0l0,-2zm0,4l2,0l0,2l-2,0l0,-2zm-16,12l2,0l0,2l-2,0l0,-2zm0,-4l2,0l0,2l-2,0l0,-2zm0,-4l2,0l0,2l-2,0l0,-2zm0,-4l2,0l0,2l-2,0l0,-2zm7.667,4l1.036,-1.555a1,1 0 0 1 0.832,-0.445l2.93,0a1,1 0 0 1 0.832,0.445l1.036,1.555l2.667,0a1,1 0 0 1 1,1l0,8a1,1 0 0 1 -1,1l-12,0a1,1 0 0 1 -1,-1l0,-8a1,1 0 0 1 1,-1l2.667,0zm-1.667,8l10,0l0,-6l-2.737,0l-1.333,-2l-1.86,0l-1.333,2l-2.737,0l0,6zm5,-1a2,2 0 1 1 0,-4a2,2 0 0 1 0,4z" fill="currentColor"/>' +
172-
'</g></g></g></svg></g></g></svg>';
167+
'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">' +
168+
'<path d="M9 3L7.17 5H4C2.9 5 2 5.9 2 7V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V7C22 5.9 21.1 5 20 5H16.83L15 3H9Z" fill="currentColor" opacity="0.3"/>' +
169+
'<path d="M20 5H16.83L15 3H9L7.17 5H4C2.9 5 2 5.9 2 7V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V7C22 5.9 21.1 5 20 5ZM12 18C9.24 18 7 15.76 7 13C7 10.24 9.24 8 12 8C14.76 8 17 10.24 17 13C17 15.76 14.76 18 12 18Z" fill="currentColor"/>' +
170+
'<circle cx="12" cy="13" r="3" fill="currentColor"/>' +
171+
'</svg>';
173172

173+
/* Без inline width/height — клас head__action сам задає розмір як у сусідів */
174174
var button = $(
175-
'<div class="head__button head__action open--photo-search selector"' +
176-
' style="display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 4px;cursor:pointer;"' +
175+
'<div class="head__action open--photo-search selector"' +
177176
' title="' + Lampa.Lang.translate('photo_search_button') + '">' +
178177
svgIcon + '</div>'
179178
);

0 commit comments

Comments
 (0)