3.1 KiB
3.1 KiB
Title
Tauri overlay shows left-edge white strip and same scale yields different window sizes by pack.
Severity
P2
Environment
- OS: Windows
- App version/build: packaged release (
sprimo-tauri.exe) - Evidence screenshots:
issues/screenshots/issue5.pngissues/screenshots/issue5-b.pngissues/screenshots/issue5-c.png
Summary
Two regressions were observed in packaged Tauri runtime:
- A visible white strip appears on the overlay left edge on dark backgrounds.
- At the same slider scale, main overlay window size differs by sprite pack.
Reproduction Steps
- Run packaged
sprimo-tauri.exe. - Place overlay over a dark/black background.
- Observe left window edge.
- Open settings and set the same scale value on
default,ferris, anddemogorgon. - Compare main window footprint.
Expected Result
- No white strip or white background bleed on transparent overlay edges.
- Same scale value produces the same main overlay window size regardless of pack.
Actual Result
- Left edge can show a white strip.
- Window size differs across packs at same scale.
Root Cause Analysis
- Transparency chain was incomplete in CSS:
bodywas transparent, buthtml/#rootwere not explicitly transparent/full-size, allowing white background bleed at edges in transparent frameless window mode.
- Scale-to-window mapping depended on per-pack frame size:
- window sizing used pack
frame_width/frame_height, so identical scale values produced different target sizes across packs.
Implementation Notes
frontend/tauri-ui/src/main.tsx
- introduced canonical scale basis
512x512for window sizing semantics. - changed
fittedWindowSizeandeffectiveScaleForWindowSizeto use canonical dimensions. - removed pack-dependent sizing from
fitWindowForScale; pack remains used for rendering/splitting.
frontend/tauri-ui/src/styles.css
- made
html,body, and#rootexplicit full-size transparent surfaces to avoid white bleed.
docs/TAURI_RUNTIME_TESTING.md
- added explicit checks for same-scale cross-pack window-size consistency and no edge white strip.
docs/RELEASE_TESTING.md
- added packaged verification steps for white-edge bleed and cross-pack same-scale size consistency.
Verification
Commands Run
npm --prefix frontend/tauri-ui run buildcargo check -p sprimo-taurijust build-release-taurijust package-win-taurijust smoke-win-tauri
Visual Checklist
- Before screenshot(s):
issues/screenshots/issue5.png - Before screenshot(s):
issues/screenshots/issue5-b.png - Before screenshot(s):
issues/screenshots/issue5-c.png - After screenshot(s):
issues/screenshots/issue5-after-YYYYMMDD-HHMMSS.png
Result
- Status:
Fix Implemented - Notes: packaged runtime verification pending.
Status History
2026-02-14 00:00- reporter -Reported- left white strip + same-scale size inconsistency reported.2026-02-14 00:00- codex -Triaged- identified transparency chain and scale-basis coupling root causes.2026-02-14 00:00- codex -Fix Implemented- switched to canonical scale basis and full-surface transparency.