From 8e5eff2ba8d047218537bbf07b74618eb967d42f Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 1 Nov 2026 19:57:18 +0100 Subject: [PATCH] Ingen tom boks der kartet mangler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e --- custom.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom.css b/custom.css index 75861b4..12e1963 100644 --- a/custom.css +++ b/custom.css @@ -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; +}