Commit Graph
11 Commits
Author SHA1 Message Date
Mehdi Chaid 9b0d572896 feat: single-click to edit numerical slider values
Change the makeComfySlider widget from double-click to single-click for
entering input mode, and prevent input mode after a drag interaction.
2026-05-14 09:35:33 -04:00
Mehdi Chaid 906ca729f7 fix(ui): unify grid item hover overlay across Flake Stack, Flake Combo, and Flake Model Combo
- Extract shared grid item helpers (makeGridItemOverlay, makeHoverButton,
  makeTypeRibbon, makeBypassStrike, svgIcon, TYPE_COLORS) into utils.js
- Fix overlay not covering full item in Flake Stack (was using top/left/
  right/bottom:4px instead of inset:0)
- Fix option dropdown button position inconsistency between Stack and Combo
- Use same hover overlay style (inset:0, border-radius:3px) for all three
- Make hover buttons 50% bigger (33px instead of 22px)
- Make triangle dropdown button 50% bigger (18px font instead of 12px)
- Dark overlay always present (not conditional on hasCover), matching
  Model Combo style

Closes #138
2026-05-13 21:11:19 -04:00
Mehdi Chaid 55d9a0c5fe style: tweak numerical slider button sizing and input mode behavior
- Narrow -/+ buttons from 28px to 22px (value span flexes to fill)
- Replace click-to-input with double-click contentEditable so slider
  layout stays identical regardless of interaction state
- Reduce top margin between Numerical Sliders and previous section

Closes #123
2026-05-13 16:18:49 -04:00
Mehdi Chaid b35b08fd85 fix: replace browser datalist with custom dropdown for searchable fields (closes #126)
- Add dropdown arrow button to searchable fields (VAE, Text Encoder, embeddings)
- Fix dropdown positioning by using a custom dropdown panel positioned
  directly below the input field instead of browser-native datalist
- Show dropdown on focus, arrow click, and double-click
- Backward-compatible datalist proxy for dynamic option population
2026-05-13 16:16:11 -04:00
Mehdi Chaid 29ee6bd424 load flake instead of load existing 2026-05-11 13:06:20 -04:00
Mehdi Chaid 2ff14658bb fix(ui): use native family widget, remove gaps, preserve dimensions 2026-05-06 16:57:49 -04:00
Mehdi Chaid a0092fae3c fix(ui): use imported app for canvas zoom scale in family dropdown 2026-05-06 16:21:58 -04:00
Mehdi Chaid 834b6429da fix(ui): scale family dropdown options with canvas zoom 2026-05-06 15:49:25 -04:00
Mehdi Chaid 003f0359eb fix(flake-stack): replace default options with positive prompt field 2026-05-06 15:38:42 -04:00
Mehdi Chaid c0b8ed68b9 fix(family-dropdown): enlarge and stop click propagation (#67)
The Family dropdown was too small to comfortably click on the Flake
Stack node and clicks were leaking to the LiteGraph canvas on the
Flake Model Preset node, where they triggered the underlying preset
combo. Increase font size, padding, and min-height across all four
widgets, and stop mousedown/click propagation so the canvas no longer
intercepts dropdown opens.

Also introduce a shared FAMILY_FOLDERS / familyFolder helper in utils
to be used by upcoming path-aware features.
2026-05-05 16:19:43 -04:00
Mehdi Chaid 6ab581f040 refactor: split flake_stack.js into focused modules
Decomposes the ~3800-line flake_stack.js monolith into maintainable
modules:

- api.js        – all server API calls
- utils.js      – DOM helpers, sliders, inputs, drag indicators
- modal.js      – overlay modal infrastructure
- flake-modal.js – flake create/edit modal
- preset-modal.js – preset create/edit modal + preset option refresh
- pickers.js    – file browser, flake picker, preset picker
- widgets/      – per-node widget setups
  - flake-stack.js
  - flake-combo.js
  - flake-model-preset.js
  - flake-model-combo.js
- queue.js      – frontend combination queueing logic
- flake_stack.js – entry point, imports everything and registers extension

Fixes #59
2026-05-01 15:06:12 -04:00