mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
tweak: safe data URI strings for icons in search
This commit is contained in:
parent
55d2af189e
commit
7ca0a02fa4
@ -1034,7 +1034,7 @@ async function UIDesktop(options){
|
||||
ht += `<div class="toolbar-btn qr-btn" title="QR code" style="background-image:url(${window.icons['qr.svg']})"></div>`;
|
||||
|
||||
// search button
|
||||
ht += `<div class="toolbar-btn search-btn" title="Search" style="background-image:url(${window.icons['search.svg']})"></div>`;
|
||||
ht += `<div class="toolbar-btn search-btn" title="Search" style="background-image:url('${window.icons['search.svg']}')"></div>`;
|
||||
|
||||
// user options menu
|
||||
ht += `<div class="toolbar-btn user-options-menu-btn" style="background-image:url(${window.icons['profile.svg']})">`;
|
||||
|
@ -91,7 +91,7 @@ async function UITaskbar(options){
|
||||
let apps_str = '';
|
||||
|
||||
apps_str += `<div class="launch-search-wrapper">`
|
||||
apps_str += `<input style="background-image:url(${window.icons['magnifier-outline.svg']});" class="launch-search">`;
|
||||
apps_str += `<input style="background-image:url('${window.icons['magnifier-outline.svg']}');" class="launch-search">`;
|
||||
apps_str += `<img class="launch-search-clear" src="${window.icons['close.svg']}">`;
|
||||
apps_str += `</div>`;
|
||||
// -------------------------------------------
|
||||
|
@ -27,7 +27,7 @@ async function UIWindowSearch(options){
|
||||
let h = '';
|
||||
|
||||
h += `<div class="search-input-wrapper">`;
|
||||
h += `<input type="text" class="search-input" placeholder="Search" style="background-image:url(${window.icons['magnifier-outline.svg']});">`;
|
||||
h += `<input type="text" class="search-input" placeholder="Search" style="background-image:url('${window.icons['magnifier-outline.svg']}');">`;
|
||||
h += `</div>`;
|
||||
h += `<div class="search-results" style="overflow-y: auto; max-height: 300px;">`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user