fix v1.21.2: space-dialog polish

- scale (cm/cell) input compact again (generic width:100% dialog rule stretched it)
- space with no background image gets a white paper canvas (.stage.noplan), so
  hand-drawn rooms read like a plan on paper
- TESTING.md updated in the same commit
This commit is contained in:
Matysh
2026-07-16 14:32:07 +03:00
parent f670c8644c
commit ae10befd58
12 changed files with 37 additions and 14 deletions
+5 -1
View File
@@ -137,6 +137,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
opacity: 0.5;
pointer-events: none;
}
.stage.noplan {
background: #ffffff;
}
.stage {
position: relative;
width: 100%;
@@ -505,6 +508,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
}
/* beat the generic .dialog .body .namein { width:100% } rule */
.dialog .body .temprange .tempin { width: 56px; flex: none; padding: 3px 6px; }
.dialog .body .colorrow .tempin { width: 72px; flex: none; }
.srcrow { flex-wrap: nowrap; }
.srcrow > span:first-of-type { white-space: nowrap; }
.colorrow .opl { color: var(--hp-muted); font-size: 12px; }
@@ -1113,7 +1117,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
${this._markup?this._renderMarkupBar():W}
</div>
<div class="stage ${this._markup?"markup":""}"
<div class="stage ${this._markup?"markup":""} ${e.bg?"":"noplan"}"
style="height:calc(100dvh - 118px)"
@click=${t=>this._markupClick(t)}
@wheel=${t=>this._onWheel(t)}