Feat v0.6.10 viewport foundation (#45)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #45.
This commit is contained in:
@@ -123,15 +123,8 @@ export async function boot() {
|
||||
|
||||
// Shell — layout utilities (decouples surface code from shell DOM)
|
||||
const _shell = {
|
||||
/** CSS transform scale on #surfaceInner (appearance zoom). */
|
||||
getScale() {
|
||||
const el = document.getElementById('surfaceInner');
|
||||
if (!el) return 1;
|
||||
const t = getComputedStyle(el).transform;
|
||||
if (!t || t === 'none') return 1;
|
||||
const m = t.match(/matrix\(([^,]+)/);
|
||||
return m ? parseFloat(m[1]) || 1 : 1;
|
||||
},
|
||||
/** @deprecated v0.6.10 — CSS zoom handles reflow; no scale correction needed. */
|
||||
getScale() { return 1; },
|
||||
/** Topbar — set after dynamic import below */
|
||||
Topbar: null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user