diff --git a/Docs/Sprints/2026-11-03-overnight.md b/Docs/Sprints/2026-11-03-overnight.md index 9a5351ec..072e4647 100644 --- a/Docs/Sprints/2026-11-03-overnight.md +++ b/Docs/Sprints/2026-11-03-overnight.md @@ -76,3 +76,9 @@ All three editors now share PWA shell handling: hide the titlebar/quick access a Added a real Floor Plans editor fixture with its production Razor script section, floor and block; expanded panel tests from the isolated Floor Plans grid to the full editor. Verification: build passed (0 warnings/errors); full-editor panel tests passed across Maps, Relationships and Floor Plans in browser, normal PWA and maximised PWA, four theme settings, narrow viewports, saved-width restoration, keyboard/pointer resize and reset. Maximise/restore regression passed for all three editors in browser/PWA and four themes, including shell visibility, ribbon Restore command, canvas bounds and preserved map document/relationship pan and zoom/floor block state. Existing Maps browser/PWA author workflow regression passed. Full regression harness rerun in progress. C1 commit: 79c4fd2. Explicit B/C improvements are implemented and committed. Next: targeted broader UX/functional/security/public-site audits and repairs; Development deployment after final checks and background-work safety verification. + +### D1 — Responsive character image controls + +Reproduced browser overflow at 390px: a 360px form had 369px scroll width because the image uploader required 220px beside a fixed portrait. Allowed the shared image editor to wrap, with a shrinkable controls column. Fixed form measures 360px/360px; restoring the old CSS reproduces 360px/369px. Replaced the browser test's accepted-overflow diagnostic with a no-overflow assertion. + +Verification: existing record-workspaces browser suite passed for nine real Razor forms, browser/PWA actions, responsive widths (1920/1440/800/390), validation, original POST handling, six themes and stable first paint. Full harness after C2 passed (exit 0). C2 commit: d7ae6e2. diff --git a/PlotLine.Tests/Browser/record-workspaces.cjs b/PlotLine.Tests/Browser/record-workspaces.cjs index 3ac9dc8b..b8038467 100644 --- a/PlotLine.Tests/Browser/record-workspaces.cjs +++ b/PlotLine.Tests/Browser/record-workspaces.cjs @@ -22,7 +22,7 @@ async function recordGroup(page){const group=page.locator('.pd-context-group[ari await tab.setViewportSize({width,height:1080});await frames(tab); const sample=()=>tab.locator('main form.pd-record-form').evaluate(e=>({width:e.clientWidth,scroll:e.scrollWidth,fields:[...e.querySelectorAll('.form-control,.form-select')].map(n=>{const r=n.getBoundingClientRect();return[r.x,r.y,r.width,r.height]})})); const before=await sample();await tab.locator('link[href="/css/record-workspace.css"]').evaluate(e=>e.disabled=true);await frames(tab);assert.deepEqual(await sample(),before,'Browser layout unchanged at '+width);await tab.locator('link[href="/css/record-workspace.css"]').evaluate(e=>e.disabled=false); - if(before.scroll>before.width+1)console.log('Existing Browser character-image panel overflow retained at '+width+'px; Desktop collapse verified separately.'); + assert(before.scroll<=before.width+1,'Browser character image controls fit the form at '+width+'px'); } const desktop=await browser.newContext({viewport:{width:1920,height:1080}});await desktop.addInitScript(()=>Object.defineProperty(navigator,'standalone',{value:true}));const app=await desktop.newPage();app.on('pageerror',e=>failures.push(e.message)); for(const record of records){ diff --git a/PlotLine/wwwroot/css/site.css b/PlotLine/wwwroot/css/site.css index 31ac33f9..d6773e7b 100644 --- a/PlotLine/wwwroot/css/site.css +++ b/PlotLine/wwwroot/css/site.css @@ -6900,6 +6900,7 @@ body.scene-inspector-editor-resizing { } .visual-image-editor { + flex-wrap: wrap; align-items: center; background: rgba(47, 111, 99, .05); border: 1px solid rgba(47, 111, 99, .14); @@ -6910,8 +6911,8 @@ body.scene-inspector-editor-resizing { } .visual-image-editor__controls { - flex: 1 1 auto; - min-width: 220px; + flex: 1 1 220px; + min-width: 0; } .floor-plan-block--room {