diff --git a/core/assets/js/feldspar_app.js b/core/assets/js/feldspar_app.js index 460beaf00..dc1c8bf17 100644 --- a/core/assets/js/feldspar_app.js +++ b/core/assets/js/feldspar_app.js @@ -1,6 +1,6 @@ export const FeldsparApp = { mounted() { - console.log("FeldsparApp MOUNTED"); + console.log("[FeldsparApp] Mounted"); console.log(this.el.dataset); @@ -16,7 +16,7 @@ export const FeldsparApp = { }, onFrameLoaded() { - console.log("Initializing iframe app"); + console.log("[FeldsparApp] Initializing iframe app"); this.channel = new MessageChannel(); this.channel.port1.onmessage = (e) => { this.handleMessage(e); @@ -25,9 +25,18 @@ export const FeldsparApp = { let action = "live-init"; let locale = this.el.dataset.locale; - this.getIframe().contentWindow.postMessage({ action, locale }, "*", [ + const iframe = this.getIframe(); + + iframe.contentWindow.postMessage({ action, locale }, "*", [ this.channel.port2, ]); + + const observer = new ResizeObserver(() => { + const height = iframe.contentWindow.document.body.scrollHeight; + iframe.setAttribute("style", `height:${height}px`); + }); + + observer.observe(iframe.contentWindow.document.body); }, handleMessage(e) { diff --git a/core/assets/static/manifest.json b/core/assets/static/manifest.json index 6ca08ebfe..8957ef726 100644 --- a/core/assets/static/manifest.json +++ b/core/assets/static/manifest.json @@ -19,7 +19,7 @@ "display": "standalone", "display_override": ["window-control-overlay", "minimal-ui"], "scope": "/", - "theme_color": "#4272ef", + "theme_color": "#F6F6F6", "shortcuts": [ ], "screenshots": [ diff --git a/core/lib/core_web/controllers/layouts/error.html.heex b/core/lib/core_web/controllers/layouts/error.html.heex index d9ca0ff32..220a7a23b 100644 --- a/core/lib/core_web/controllers/layouts/error.html.heex +++ b/core/lib/core_web/controllers/layouts/error.html.heex @@ -6,7 +6,7 @@ <%= csrf_meta_tag() %> - + - + diff --git a/core/priv/bundles/link/manifest.json b/core/priv/bundles/link/manifest.json index df51af743..423221664 100644 --- a/core/priv/bundles/link/manifest.json +++ b/core/priv/bundles/link/manifest.json @@ -19,7 +19,7 @@ "display": "standalone", "display_override": ["window-control-overlay", "minimal-ui"], "scope": "/", - "theme_color": "#4272ef", + "theme_color": "#F6F6F6", "shortcuts": [ ], "screenshots": [ diff --git a/core/systems/assignment/crew_page.ex b/core/systems/assignment/crew_page.ex index 5c8d413cd..a71cdf786 100644 --- a/core/systems/assignment/crew_page.ex +++ b/core/systems/assignment/crew_page.ex @@ -139,9 +139,7 @@ defmodule Systems.Assignment.CrewPage do
-
- <.flow fabric={@fabric} /> -
+ <.flow fabric={@fabric} />
""" diff --git a/core/systems/feldspar/app_view.ex b/core/systems/feldspar/app_view.ex index c02ac108f..a4141c1e6 100644 --- a/core/systems/feldspar/app_view.ex +++ b/core/systems/feldspar/app_view.ex @@ -10,13 +10,13 @@ defmodule Systems.Feldspar.AppView do @impl true def render(assigns) do ~H""" -
+
<%!-- Ensure that updates don't alter the hierarchy in front of the iframe. Changing the preceding siblings of the iframe would result in a reload of the iframe due to Morphdom (https://github.com/patrick-steele-idem/morphdom/issues/200). --%> -
- +
+
"""