Remove GIPHY prompt bar
build-push / docker (push) Successful in 4m37s

This commit is contained in:
GHStaK
2026-03-24 17:27:30 +09:00
parent e3dbedc59f
commit 914f10f502
3 changed files with 10 additions and 18 deletions
-12
View File
@@ -11,8 +11,6 @@ const searchSubmitButton = document.getElementById("searchSubmitButton");
const searchResultsViewport = document.getElementById("searchResultsViewport");
const mediaTypeToggles = Array.from(document.querySelectorAll("[data-media-type-toggle]"));
const platformToggles = Array.from(document.querySelectorAll("[data-platform-toggle]"));
const imagePromptBar = document.getElementById("imagePromptBar");
const imagePromptChips = Array.from(document.querySelectorAll("[data-image-prompt]"));
const dropzone = document.getElementById("dropzone");
const fileInput = document.getElementById("fileInput");
const uploadResult = document.getElementById("uploadResult");
@@ -338,7 +336,6 @@ function renderImageResults(items = []) {
function applyMediaTypeUI() {
const isImageMode = activeMediaType === "image";
syncMediaTypeButtons();
setHidden(imagePromptBar, !isImageMode, "flex");
setHidden(queryVariants, true, "");
showWarning("");
searchResultsViewport.classList.toggle("image-results-scroll", isImageMode);
@@ -950,15 +947,6 @@ for (const button of mediaTypeToggles) {
});
}
for (const chip of imagePromptChips) {
chip.addEventListener("click", () => {
searchQuery.value = chip.dataset.imagePrompt || "";
if (activeMediaType === "image") {
setStatus("image prompt applied", 0);
}
});
}
async function uploadFile(file) {
const formData = new FormData();
formData.append("file", file);