Commit 3fba9ce
committed
Fix tire search dropdown: no results + icon overlap
1. The tire data was passed to JS as flat numeric arrays via
get_tires_as_array(), but tire-review.js accessed properties by name
(t.brand, t.model, etc.), making every field undefined and the search
haystack always empty. Now maps the flat rows into lightweight objects
with named keys before localizing.
2. The search icon used a Font Awesome <i> class, but FA fonts may not
load on the standalone page due to CSP restrictions. Replaced with an
inline SVG so the icon always renders and never overlaps input text.
https://claude.ai/code/session_01BAc9aiNw9dh4GeqEkpkxLK1 parent cf42344 commit 3fba9ce
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | | - | |
| 103 | + | |
90 | 104 | | |
91 | 105 | | |
92 | 106 | | |
| |||
0 commit comments