Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

fix(loras): CivitAI search field no longer swallowed by Search (#82)

Viktor Matushevskyiefe5fcfc6ba5
diff --git a/webapp/index.html b/webapp/index.html
index 57dfc4b..57ec75e 100644
--- a/webapp/index.html
+++ b/webapp/index.html
@@ -4494,18 +4494,21 @@
<label class="toggle-pill" title="Only repos that ship an example clip or image"><input type="checkbox" id="civitaiWithExample" onchange="civitaiSetKind()"><span class="toggle-dot"></span><span>With example</span></label>
</div>
<!-- A search bar that reads as one: magnifier, a placeholder that says
- where it searches, and a Search button — the bare input was mistaken
- for a filter box. -->
+ where it searches, and a compact Search button. The field wraps the
+ icon + input so the input can grow; Search must not use .pill-btn
+ (those are width:100% form chips and would swallow the row). -->
<div class="civitai-search-bar" role="search">
- <svg class="civitai-search-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
- <circle cx="7" cy="7" r="4.5" stroke="currentColor" stroke-width="1.6"/>
- <path d="M10.5 10.5 L14 14" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
- </svg>
- <input type="search" id="civitaiQuery" placeholder="Search CivitAI — a name, a style, a creator… then Enter"
- aria-label="Search CivitAI"
- oninput="if(this._t) clearTimeout(this._t); this._t = setTimeout(civitaiSearch, 350)"
- onkeydown="if(event.key==='Enter'){ event.preventDefault(); civitaiSearch(); }">
- <button type="button" class="pill-btn" onclick="civitaiSearch()" title="Search CivitAI">Search</button>
+ <div class="civitai-search-field">
+ <svg class="civitai-search-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
+ <circle cx="7" cy="7" r="4.5" stroke="currentColor" stroke-width="1.6"/>
+ <path d="M10.5 10.5 L14 14" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
+ </svg>
+ <input type="search" id="civitaiQuery" placeholder="Search CivitAI — a name, a style, a creator… then Enter"
+ aria-label="Search CivitAI"
+ oninput="if(this._t) clearTimeout(this._t); this._t = setTimeout(civitaiSearch, 350)"
+ onkeydown="if(event.key==='Enter'){ event.preventDefault(); civitaiSearch(); }">
+ </div>
+ <button type="button" class="ghost-btn civitai-search-go" onclick="civitaiSearch()" title="Search CivitAI">Search</button>
</div>
<div class="civitai-grid" id="civitaiGrid">
<div class="hint">Loading…</div>
diff --git a/webapp/style/panel.css b/webapp/style/panel.css
index c35232a..332855f 100644
--- a/webapp/style/panel.css
+++ b/webapp/style/panel.css
@@ -8574,15 +8574,29 @@
/* CivitAI browser modal — grid of cards with thumbnail, name,
creator, downloads, NSFW indicator, and an Install button per
- card. Layered on the .models-modal scaffold. */
+ card. Layered on the .models-modal scaffold.
+
+ Search row: the global `input, button { width: 100% }` plus
+ `.pill-btn { width: 100% }` used to make Search the whole card
+ and pinch the field to a stub. Field grows; Search stays intrinsic. */
.civitai-search-bar {
display: flex; gap: 8px; margin-bottom: 12px; align-items: center;
+ min-width: 0;
+ }
+ .civitai-search-field {
+ position: relative; flex: 1 1 auto; min-width: 0;
}
- .civitai-search-bar { position: relative; }
.civitai-search-bar input[type="text"],
- .civitai-search-bar input[type="search"] { flex: 1; padding-left: 32px; min-height: 36px; }
+ .civitai-search-bar input[type="search"] {
+ display: block; width: 100%; min-width: 0; box-sizing: border-box;
+ padding-left: 32px; min-height: 36px;
+ }
.civitai-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
color: var(--dim, #7a8194); pointer-events: none; }
+ .civitai-search-go {
+ width: auto; flex: 0 0 auto; white-space: nowrap;
+ min-height: 36px; padding: 0 14px; font-size: 12px;
+ }
.civitai-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px; margin-top: 10px;
@@ -10192,6 +10206,11 @@ body.oneshot-mode #h3LengthGroup { display: none !important; }
.civitai-chips .pill-btn { width: auto; flex: 0 0 auto; padding: 3px 9px; font-size: 11px; border-radius: 999px; margin: 0; }
.civitai-chips .toggle-pill { margin-left: auto; }
.civitai-toolbar .toggle-pill { margin-left: auto; }
+.civitai-search-bar { display: flex; gap: 8px; align-items: center; min-width: 0; }
+.civitai-search-field { position: relative; flex: 1 1 auto; min-width: 0; }
+.civitai-search-bar input[type="search"],
+.civitai-search-bar input[type="text"] { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
+.civitai-search-go { width: auto; flex: 0 0 auto; white-space: nowrap; min-height: 36px; padding: 0 14px; }
/* ---- One Shot tab (webapp/js/oneshot.js, 2026-09-08) ---------------------- */
/* The tab owns the left pane the way Audio and Train do: the video form, its