mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-28 08:21:27 -03:00
2bfb987312
- Extract a shared BaseModelPicker (search, keyboard navigation, filename-based suggestions, dynamic API models such as MiniMax H3 under 'Other (API)') used by both the single-model metadata modal and the bulk base model modal - Rework the bulk base model modal into a dedicated inline-list layout: fixed modal size, sticky-free footer with app-standard modal-actions/primary-btn/cancel-btn buttons, and an inline option list that scrolls itself instead of an overlay dropdown covering the footer - Selecting an option in change mode now filters the list to the selection instead of resetting and scroll-jumping to it - Restore opaque sticky section headers in the bulk modal so scrolled items no longer bleed through
26 lines
1.3 KiB
HTML
26 lines
1.3 KiB
HTML
<div id="bulkBaseModelModal" class="modal" style="display: none;">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2>{{ t('modals.bulkBaseModel.title') }}</h2>
|
|
<span class="close" onclick="modalManager.closeModal('bulkBaseModelModal')">×</span>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="bulk-add-tags-info">
|
|
<p>{{ t('modals.bulkBaseModel.description') }} <span id="bulkBaseModelCount">0</span> {{ t('modals.bulkBaseModel.models') }}</p>
|
|
</div>
|
|
<label class="bulk-base-model-label">{{ t('modals.bulkBaseModel.selectBaseModel') }}</label>
|
|
<div id="bulkBaseModelPicker" class="bulk-base-model-picker">
|
|
<!-- Picker will be initialized dynamically -->
|
|
</div>
|
|
</div>
|
|
<div class="modal-actions bulk-base-model-footer">
|
|
<button class="cancel-btn" onclick="modalManager.closeModal('bulkBaseModelModal')">
|
|
{{ t('modals.bulkBaseModel.cancel') }}
|
|
</button>
|
|
<button class="primary-btn bulk-save-base-model-btn" onclick="bulkManager.saveBulkBaseModel()">
|
|
<i class="fas fa-save"></i> {{ t('modals.bulkBaseModel.save') }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|