Don't collapse the preview iframe when a view mode's height comes from its content

Non-full view modes pass a min height of 0, which handleLoad wrote as an inline height: 0px. That beats the stylesheet's height: 100%, and the vh probe that used to clear it no longer runs when the base viewport height is 0.

AI-Generated: Yes (Used Claude to prepare an MR).

Testing instructions

  • Install drupal/cms - Byte
  • Build canvas from source (npm i && npm run build)
  • Go to Content Templates management and check any non-full display view mode

Closes #3591908 (closed)

Merge request reports

Loading