Ingen tom boks der kartet mangler

Uten MAPBOX_TOKEN tegner portal v0.10.3 en tom boks for location-felt. Feltet er valgfritt, så det skjules til kartet er der.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-01 19:57:18 +01:00
1 parent 347783ef63
commit 8e5eff2ba8
1 file changed
+8
+8
View File
@@ -107,3 +107,11 @@ button:hover, .button:hover, input[type="submit"]:hover {
color: #9b9478;
opacity: 1;
}
/* A `type: location` field with no map behind it (no MAPBOX_TOKEN on the
instance) is an empty box and a label: portal v0.10.3 draws neither the
map nor the two number inputs its docs promise. The field is optional
here, so without a map it is simply not there. */
.field:has(> .map-wrap:empty) {
display: none;
}