{# The drawer's preview of a card (routes.preview_module_route), shown as the srcdoc of an iframe with sandbox="allow-scripts": a page of no site, where only the scripts with this nonce run, never the module's. The card goes into a shadow root as on the mirror (js/kiosk/core.js showModuleHtml), then the page zooms out until it fits. The card is sized as on the mirror (style.css "Card size") on a 1920 x 1080 screen with the 60 px margins, so its share of the screen is the same whatever the drawer's width. placement: what client.placement() gives for the unsaved form. #} {% if html is not none %}
0 %}data-fixed-width{% endif %} style="{% if placement.width_percent > 0 %}--md-card-max-width: calc(var(--md-usable-width) * {{ placement.width_percent / 100 }});{% endif %}{% if placement.height_percent > 0 %}--md-card-max-height: calc(var(--md-usable-height) * {{ placement.height_percent / 100 }});{% endif %}opacity: {{ placement.opacity_percent / 100 }};">
{% else %}

{{ message }}

{% endif %}