mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-23 14:12:11 -03:00
Refactor recipe metadata handling and update CSS styles
- Moved the recipe metadata appending logic to occur after the JSON creation for better workflow. - Adjusted the user comment formatting in ExifUtils to include a newline for improved readability. - Reduced the maximum height of the recipe modal bottom section for better layout consistency.
This commit is contained in:
@@ -354,9 +354,9 @@ export class ImportManager {
|
||||
this.updateTagsDisplay();
|
||||
}
|
||||
} else if (this.recipeData && this.recipeData.gen_params && this.recipeData.gen_params.prompt) {
|
||||
// Use the first 15 words from the prompt as the default recipe name
|
||||
// Use the first 10 words from the prompt as the default recipe name
|
||||
const promptWords = this.recipeData.gen_params.prompt.split(' ');
|
||||
const truncatedPrompt = promptWords.slice(0, 15).join(' ');
|
||||
const truncatedPrompt = promptWords.slice(0, 10).join(' ');
|
||||
recipeName.value = truncatedPrompt;
|
||||
this.recipeName = truncatedPrompt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user