From 66452dc1f097e5f7df2f2945aceb54028730d37a Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 21 Jun 2026 15:49:24 +0200 Subject: [PATCH] fix: revert thumbnail size to 96px, keep wider 560 min grid width Co-Authored-By: Claude Opus 4.8 --- web/grid_image_pool.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/grid_image_pool.js b/web/grid_image_pool.js index 294985d..9cb2b71 100644 --- a/web/grid_image_pool.js +++ b/web/grid_image_pool.js @@ -10,14 +10,14 @@ const R = "/grid_pool"; // grid geometry (kept in sync with the CSS below) — used to size the node so // the DOM widget never clips the toolbar and the node auto-grows with content. -const CELL = 128; // .gip-cell width/height +const CELL = 96; // .gip-cell width/height (thumbnail size) const GAP = 6; // .gip-grid gap const PAD = 4; // .gip-grid padding const TOOLBAR_H = 26; const ROW_H = CELL + GAP; const MAX_ROWS = 4; // beyond this the grid scrolls internally -const COLS = 4; // fixed column count (node width is sized to fit this) -const MIN_W = 560; +const COLS = 4; // fixed column count +const MIN_W = 560; // minimum node/grid width (the grey area) // ComfyUI insets DOM widgets by DEFAULT_MARGIN (10px) on every side and forces // our element to h-full/w-full of the (computedHeight - 2*MARGIN) box. Reserve // that or the grid eats into the toolbar's space.