From e376a45dea32116d056f9b82a6fd2ef103a66047 Mon Sep 17 00:00:00 2001
From: Will Miao <13051207myq@gmail.com>
Date: Mon, 5 May 2025 21:11:52 +0800
Subject: [PATCH] refactor: remove unused source URL tooltip from RecipeModal
component
---
static/css/components/recipe-modal.css | 34 --------------------------
static/js/components/RecipeModal.js | 4 ---
2 files changed, 38 deletions(-)
diff --git a/static/css/components/recipe-modal.css b/static/css/components/recipe-modal.css
index 7249d151..6fd1ed7e 100644
--- a/static/css/components/recipe-modal.css
+++ b/static/css/components/recipe-modal.css
@@ -375,40 +375,6 @@
background: color-mix(in oklch, var(--lora-accent), black 10%);
}
-/* Info tooltip icon for source URL */
-.source-url-info {
- margin-left: 8px;
- opacity: 0.7;
- cursor: help;
- position: relative;
-}
-
-.source-url-info:hover {
- opacity: 1;
-}
-
-.source-url-tooltip {
- position: absolute;
- bottom: 100%;
- left: 50%;
- transform: translateX(-50%);
- background: var(--card-bg);
- color: var(--text-color);
- padding: 8px 12px;
- border-radius: var(--border-radius-xs);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
- white-space: nowrap;
- font-size: 0.85em;
- font-weight: normal;
- margin-bottom: 8px;
- z-index: 10;
- display: none;
-}
-
-.source-url-info:hover .source-url-tooltip {
- display: block;
-}
-
/* Generation Parameters */
.recipe-gen-params {
height: 360px;
diff --git a/static/js/components/RecipeModal.js b/static/js/components/RecipeModal.js
index 399afbbb..725c8b7d 100644
--- a/static/js/components/RecipeModal.js
+++ b/static/js/components/RecipeModal.js
@@ -259,10 +259,6 @@ class RecipeModal {
${
hasSourceUrl ? sourceUrl : 'No source URL'
}
-
-
- Source of the original image (e.g., Civitai post)
-