22 * Copyright (c) 2021 - present core.ai
33 * SPDX-License-Identifier: LicenseRef-Proprietary
44 */
5- /*global GLOBALS, LivePreviewView, proConstants, config, cssStyles, strings, icons, dismissUIAndCleanupState, customReturns*/
5+ /*global GLOBALS, LivePreviewView, proConstants, config, cssStyles,
6+ strings, icons, dismissUIAndCleanupState, customReturns*/
67
78const DATA_BRACKETS_ID_ATTR = GLOBALS . DATA_BRACKETS_ID_ATTR ;
89const PHCODE_INTERNAL_ATTR = GLOBALS . PHCODE_INTERNAL_ATTR ;
@@ -154,7 +155,9 @@ ImageRibbonGallery.prototype = {
154155
155156 <div class="phoenix-image-gallery-search-container">
156157 <div class="search-wrapper">
157- <button class="search-icon" title="${ strings . imageGallerySearchButton } ">${ icons . search } </button>
158+ <button class="search-icon" title="${ strings . imageGallerySearchButton } ">
159+ ${ icons . search }
160+ </button>
158161 <input
159162 type="text"
160163 placeholder="${ strings . imageGallerySearchPlaceholder } "
@@ -163,12 +166,16 @@ ImageRibbonGallery.prototype = {
163166 </div>
164167
165168 <div class='phoenix-image-gallery-upload-container'>
166- <button title="${ strings . imageGallerySelectFromComputerTooltip } ">${ icons . selectImageFromComputer } ${ strings . imageGallerySelectFromComputer } </button>
167- <input type="file" class="phoenix-file-input" accept="image/*" style="display: none !important;">
169+ <button title="${ strings . imageGallerySelectFromComputerTooltip } ">
170+ ${ icons . selectImageFromComputer } ${ strings . imageGallerySelectFromComputer }
171+ </button>
172+
173+ <input type="file" class="phoenix-file-input" accept="image/*">
168174 </div>
169175
170176 <div class='phoenix-image-gallery-right-buttons'>
171- <button class='phoenix-image-gallery-download-folder-button' title="${ strings . imageGallerySelectDownloadFolder } ">
177+ <button class='phoenix-image-gallery-download-folder-button'
178+ title="${ strings . imageGallerySelectDownloadFolder } ">
172179 ${ icons . folderSettings }
173180 </button>
174181
@@ -394,7 +401,8 @@ ImageRibbonGallery.prototype = {
394401 this . _clearCache ( ) ;
395402 }
396403
397- const apiUrl = `https://images.phcode.dev/api/images/search?q=${ encodeURIComponent ( searchQuery ) } &per_page=10&page=${ page } &safe=true` ;
404+ const apiUrl = `https://images.phcode.dev/api/images/search?` +
405+ `q=${ encodeURIComponent ( searchQuery ) } &per_page=10&page=${ page } &safe=true` ;
398406
399407 if ( ! append ) {
400408 this . _showLoading ( ) ;
0 commit comments