| 59 | 59 | </label> |
| 60 | 60 | <small data-i18n="sd_fallback_enabled_small">When enabled, each generation tries the chain presets top to bottom until one succeeds. Unreachable local backends (e.g. a powered-off ComfyUI machine) are skipped after about a second.</small> |
| 61 | 61 | <hr> |
| 62 | | - <h4 data-i18n="Reference Image Library">Reference Image Library</h4> |
| 62 | + <div class="inline-drawer"> |
| 63 | | - <label for="sd_ref_images_enabled" class="checkbox_label" data-i18n="[title]sd_ref_images_enabled" title="When the ComfyUI workflow contains a %reference_image% placeholder, the image-prompt LLM picks the best-fitting image from this library and it is passed to the workflow as Base64."> |
| 63 | + <div class="inline-drawer-toggle inline-drawer-header"> |
| 64 | | - <input id="sd_ref_images_enabled" type="checkbox" /> |
| 64 | + <b data-i18n="Reference Image Library">Reference Image Library</b> |
| 65 | | - <span data-i18n="sd_ref_images_enabled_txt">Use tagged reference images</span> |
| 65 | + <div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div> |
| 66 | 66 | </labeldiv> |
| 67 | | - <small data-i18n="sd_ref_images_small">Upload images and tag them with a short name plus a description. If the active ComfyUI workflow uses the "%reference_image%" placeholder, the best-fitting image for the scene is selected automatically and injected like %user_avatar% / %char_avatar%.</small> |
| 67 | + <div class="inline-drawer-content"> |
| 68 | | - <div id="sd_ref_images_list" class="flex-container flexFlowColumn marginTopBot5"></div> |
| 68 | + <label for="sd_ref_images_enabled" class="checkbox_label" data-i18n="[title]sd_ref_images_enabled" title="When the ComfyUI workflow contains a %reference_image% placeholder, the image-prompt LLM picks the best-fitting image from this library and it is passed to the workflow as Base64."> |
| 69 | | - <div class="flex-container marginTopBot5"> |
| 69 | + <input id="sd_ref_images_enabled" type="checkbox" /> |
| 70 | | - <div id="sd_ref_images_add" class="menu_button menu_button_icon"> |
| 70 | + <span data-i18n="sd_ref_images_enabled_txt">Use tagged reference images</span> |
| 71 | | - <i class="fa-solid fa-plus"></i> |
| 71 | + </label> |
| 72 | | - <span data-i18n="Add reference image">Add reference image</span> |
| 72 | + <small data-i18n="sd_ref_images_small">Upload images and tag them with a short name plus a description. If the active ComfyUI workflow uses the "%reference_image%" placeholder, the best-fitting image for the scene is selected automatically and injected like %user_avatar% / %char_avatar%.</small> |
| 73 | + <div id="sd_ref_images_list" class="flex-container flexFlowColumn marginTopBot5"></div> |
| 74 | + <div class="flex-container marginTopBot5"> |
| 75 | + <div id="sd_ref_images_add" class="menu_button menu_button_icon"> |
| 76 | + <i class="fa-solid fa-plus"></i> |
| 77 | + <span data-i18n="Add reference image">Add reference image</span> |
| 78 | + </div> |
| 79 | + <input id="sd_ref_images_file" type="file" accept="image/png, image/jpeg, image/webp" multiple hidden /> |
| 80 | + </div> |
| 73 | 81 | </div> |
| 74 | | - <input id="sd_ref_images_file" type="file" accept="image/png, image/jpeg, image/webp" multiple hidden /> |
| 75 | 82 | </div> |
| 76 | 83 | <hr> |
| 77 | 84 | <h4 data-i18n="RunPod On-Demand Pod">RunPod On-Demand Pod</h4> |