Implement fit-mode rendering contract with container sizing and pane re-fit

This commit is contained in:
2026-06-05 10:45:41 +03:00
parent f4253f50ca
commit 411bfbc6c2
13 changed files with 552 additions and 73 deletions
+6
View File
@@ -1,5 +1,6 @@
import { createRoot } from 'react-dom/client';
import { App } from './app/App';
import { initPreviewFitMode, wirePreviewFitMode } from './app/orchestration/preferences';
import { initApp } from './app/orchestration/startup';
import { initTheme, wireTheme } from './app/orchestration/theme';
import '../styles/base.css';
@@ -10,6 +11,11 @@ import '../styles/base.css';
initTheme();
wireTheme();
// Hydrate + persist the preview fit mode the same way (pulled ahead of the M5
// Settings modal); hydrating before render keeps the store authoritative.
initPreviewFitMode();
wirePreviewFitMode();
// Load the library from IndexedDB (seeding a sample on first run) and wire
// persistence. Fire-and-forget: the UI renders immediately and fills in when
// hydration resolves.