kingkont 0.7.95 → 0.7.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kingkont",
3
- "version": "0.7.95",
3
+ "version": "0.7.97",
4
4
  "description": "KingKont · Chatium — нод-редактор сцен с AI-генерацией (картинки/видео/голос/SFX/музыка/текст)",
5
5
  "main": "main.js",
6
6
  "bin": {
package/renderer/state.js CHANGED
@@ -426,6 +426,19 @@ function getFileType(file) {
426
426
  }
427
427
 
428
428
  // =================== State ===================
429
+ // One-time migration: если юзер ранее залипал на Pro — сбрасываем на 2.
430
+ // Pro дороже и медленнее, как дефолт не оптимально. Маркер не даёт
431
+ // миграции отрабатывать повторно: после ручного выбора Pro он останется.
432
+ (function migrateImageModelDefault() {
433
+ try {
434
+ if (localStorage.getItem('imageModelResetV2') === '1') return;
435
+ if (localStorage.getItem('imageModel') === 'nano-banana-pro') {
436
+ localStorage.setItem('imageModel', 'nano-banana-2');
437
+ }
438
+ localStorage.setItem('imageModelResetV2', '1');
439
+ } catch {}
440
+ })();
441
+
429
442
  const state = {
430
443
  filmHandle: null,
431
444
  currentBoard: null, // { kind, name, key, handle, metadata, urls }
@@ -1185,8 +1185,11 @@
1185
1185
  width: 100%; max-height: 220px; background: #000;
1186
1186
  border-radius: 4px; display: block; object-fit: contain;
1187
1187
  }
1188
- .node.image-node .node-body { padding: 0; overflow: hidden; border-radius: 0 0 8px 8px; }
1189
- .node.image-node .node-body img { width: 100%; height: auto; display: block; }
1188
+ /* Картинка должна быть с прямыми углами закругление .node-body
1189
+ резало по картинке (border-radius+overflow:hidden), искажая её
1190
+ отображение. Само тело ноды без рамки/радиуса; рамку задаёт .node. */
1191
+ .node.image-node .node-body { padding: 0; overflow: hidden; border-radius: 0; }
1192
+ .node.image-node .node-body img { width: 100%; height: auto; display: block; border-radius: 0; }
1190
1193
  /* Placeholder отображается до lazy-гидрации media — на оффскрин-нодах
1191
1194
  не дёргаем диск/декод. Размером совпадает с типичной картинкой/видео. */
1192
1195
  .media-placeholder {